79584109

Date: 2025-04-21 06:11:33
Score: 2
Natty:
Report link

also might be because no linter for lua

brew install luacheck
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: eurus

79584089

Date: 2025-04-21 05:59:30
Score: 4
Natty:
Report link

none of these solutions work for me.

xcode-select --install

fails due to a server error. Another comment on this thread mentions it's not available from the server. I am on macos 14.6.1, so I downloaded xcode 15.3 manually from apple.developer.com. It installed correctly, but I still get the same errors:

xcode-select: error: invalid developer directory '/Library/Developer/CommandLineTools'
Failed during: /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

I simply want to install homebrew so I can install Wine. Any advice would be great. Thanks

edit: I also added the folder

CommandLineTools

to the developer folder:


Library/Developer/CommandLineTools

and found no success when installing homebrew.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I still get the same error
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: resnick

79584088

Date: 2025-04-21 05:58:29
Score: 1
Natty:
Report link
mylist = ['clean the keyboard', 'meet tom', 'throw the trash']

for index, item in enumerate(mylist):
    row = f"{index + 1}. {item.title()}"  # Apply title to the item here
    print(row)
    print(len(row))
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: khann Shariq

79584076

Date: 2025-04-21 05:40:26
Score: 3.5
Natty:
Report link

Check out wrkflw. You can basically validate and execute workflows locally with this. Also, there is no dependency with docker to just validate workflow!

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

79584069

Date: 2025-04-21 05:30:24
Score: 1
Natty:
Report link

Followed above method to remove dependency and got this error, still this issue persist:

enter image description here

What I did?

1. Remove dependency manually

enter image description here

2. Remove firebase configuration from AppDelegate.swift

import Flutter
import UIKit
//import Firebase

@main
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
//      FirebaseApp.configure()
    GeneratedPluginRegistrant.register(with: self)
   
return super.application(application, didFinishLaunchingWithOptions: launchOptions)

//    Apptics.initialize(withVerbose: true)
        }
}

Now Issue is This:

flutter run
Launching lib/main.dart on iPhone 15 Pro in debug mode...
Running pod install...                                              3.6s
Running Xcode build...                                                  
Xcode build done.                                           13.5s
Failed to build iOS app
Package Loading (Xcode): Missing package product 'FirebaseAppCheck'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Package Loading (Xcode): Missing package product 'FirebaseCore'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Package Loading (Xcode): Missing package product 'FirebaseMessaging'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Package Loading (Xcode): Missing package product 'FirebaseAnalytics'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Package Loading (Xcode): Missing package product 'FirebaseAnalyticsWithoutAdIdSupport'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Package Loading (Xcode): Missing package product 'FirebaseInAppMessaging-Beta'
/Users/rapteemac/Projects-Raptee/apptics_push_notofication/ios/Runner.xcodeproj


Could not build the application for the simulator.
Error launching application on iPhone 15 Pro.

Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Amjad Ali

79584066

Date: 2025-04-21 05:28:23
Score: 3.5
Natty:
Report link

I am also facing the same problem.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>

After adding thymeleaf dependency, it is able to find views in templates folder.
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I am also facing the same problem
  • Low reputation (1):
Posted by: krishan kansal

79584064

Date: 2025-04-21 05:25:22
Score: 1
Natty:
Report link

If you want to create only the solution file for your exsisting project in VS code then use command
dotnet new sln --name yourProjectName

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

79584063

Date: 2025-04-21 05:22:22
Score: 0.5
Natty:
Report link

You'll want to visit https://dashboard.stripe.com/test/logs and see if there are any errors related to SetupIntent confirmation. Another thing that you'll want to confirm is that your Stripe account is created in a supported country, and your flutter project has included the financial-connection dependency in both Android and iOS.

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

79584056

Date: 2025-04-21 05:11:19
Score: 1
Natty:
Report link

Thanks to Boris's advice, I managed to find a bug in the tests. An async fixture with session visibility was declared. Which created another event_loop and led to the problem.

Here is the code with the error:

@pytest_asyncio.fixture(scope="session")
async def engine(app_database_url, migrations) -> AsyncEngine:
"""Creates a SQLAlchemy engine to interact with the database."""

engine = create_async_engine(app_database_url)
yield engine
await engine.dispose()

To fix it, just need to remove scope="session" from the decorator.

And then it will become a foonction scope like all other fixtures and will not create its own separate event_loop

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

79584053

Date: 2025-04-21 05:07:18
Score: 5.5
Natty:
Report link

I have the same issue resolved by setting none value of storekit configuration in scheme. It seems that sandbox item was overlaid by local .storekit file.

Product->scheme->edit scheme->run->options->storekit configuration.

screenshoot

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Qichao Chen

79584051

Date: 2025-04-21 05:06:17
Score: 2
Natty:
Report link

I think-

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

79584050

Date: 2025-04-21 05:04:17
Score: 1
Natty:
Report link

if you are using multi projects in your solution , try build them separate one by one (right click on each project and click on build)

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

79584046

Date: 2025-04-21 05:02:17
Score: 1
Natty:
Report link

Simplest solution

echo array_slice(explode(".",$_SERVER['HTTP_HOST']),-2,1)[0];

This will show the domain name as "imgur". Change -2,1 to -2,0 (or simply -2) to show the domain as "imgur.com"

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

79584034

Date: 2025-04-21 04:29:10
Score: 2.5
Natty:
Report link

After playing around with bursting for a while, I realize that I can download the bursting report by clicking on Report Job History --> click on the bursting job name that ran successfully --> click on the output name under the tag Output & Delivery.

Then the output will be downloaded and I can check it out. And the path needs to start with C:/ for it to actually run and send the report.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ngoc

79584030

Date: 2025-04-21 04:27:09
Score: 0.5
Natty:
Report link

Whats needed for rocksdb is the rocksdbjni jar. To fix the the issue .. Did the below

RUN /opt/infinispan/bin/cli.sh install org.rocksdb:rocksdbjni:9.0.1
RUN cp /opt/infinispan/server/lib/rocksdbjni-9.0.1.jar /opt/infinispan/lib/

Note : I did try the below with no help , so had to manually copy jars .. Not ideal solution, but does works as expected.

ENV SERVER_LIBS="org.rocksdb:rocksdbjni:9.0.1"
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sharadendu sinha

79584024

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

This is because get_ticks is not a direct method of pygame , but you can access this method with pygame.time by writing:

import pygame as p
start_ticks = p.time.get_ticks()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Programming Things

79584022

Date: 2025-04-21 04:19:06
Score: 1
Natty:
Report link
public function getDuration($full_video_path)
{
    $getID3 = new \getID3;
    $file = $getID3->analyze($full_video_path);
    $playtime_seconds = $file['playtime_seconds'];
    $duration = date('H:i:s.v', $playtime_seconds);

    return $duration;
}

This is a very slow process. When you upload a video, it will take more time than a regular upload.

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

79584018

Date: 2025-04-21 04:16:05
Score: 6.5 🚩
Natty: 5.5
Report link

this post may be very old. but can you tell me how you added this user_friends permission to the SDK?. Currently the user_friends permission in the app has the status "Ready for Testing". But when calling the SDK, the access token still does not have the user_friends permission. I don't know if I missed any steps. Looking forward to your feedback.

Reasons:
  • Blacklisted phrase (1.5): Looking forward to your
  • RegEx Blacklisted phrase (2.5): can you tell me how you
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30326756

79584015

Date: 2025-04-21 04:11:03
Score: 1
Natty:
Report link

You can use macros to securely erase memory, in particular pam_overwrite_string().

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: dimich

79584010

Date: 2025-04-21 04:06:02
Score: 3.5
Natty:
Report link

I am not seeing the "Recent update jobs" button.

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

79584008

Date: 2025-04-21 04:02:01
Score: 3
Natty:
Report link

Create React App Deprecated

CRA has been deprecated for awhile. Like what @MenTalist mentioned, this likely caused an incompatible build while trying to install the latest react@19

Would definitely recommend spending a bit of time to read up the Official Documentations here: https://react.dev/learn/creating-a-react-app

And only use the tools listed!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @MenTalist
  • Low reputation (1):
Posted by: roarnald

79584007

Date: 2025-04-21 04:00:00
Score: 2
Natty:
Report link

This issue happens when the payload you are doing json-eval is a malformed json payload. Verify whether it is a valid json payload.

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

79583995

Date: 2025-04-21 03:47:58
Score: 1
Natty:
Report link

There is : std::from_chars

https://en.cppreference.com/w/cpp/utility/from_chars

It would have been unc++like to call it from_string ;)

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

79583990

Date: 2025-04-21 03:44:58
Score: 1
Natty:
Report link

DynamoDB can split partitions down to the size of a single item, so while you might have a hot partition initially because the two items shared the same partition key and started in the same partition, the database would adapt quickly.

https://aws.amazon.com/blogs/database/part-2-scaling-dynamodb-how-partitions-hot-keys-and-split-for-heat-impact-performance/

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

79583988

Date: 2025-04-21 03:35:56
Score: 2.5
Natty:
Report link

Make sure you change your version after each change you made in Project settings --> Player

the default version would be 0 , you can just change it to 0.1 and so on

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

79583986

Date: 2025-04-21 03:29:54
Score: 1
Natty:
Report link

Using third-party payment processor with Stripe billing is a private preview feature. You can sign up for early access on this page

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

79583978

Date: 2025-04-21 03:16:52
Score: 2.5
Natty:
Report link

1

I'm a geologist and I use Jensen, Pyke diagrams to understand what is going on with volcanoes. I'd like to make a fixed background/template with such a diagram:

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: HAU DANG TRAN

79583973

Date: 2025-04-21 03:12:51
Score: 1.5
Natty:
Report link

Now, in nightly, you could do

if let Some(6) = a && let Some(7) = b {
    /* Do something */
}

by using the let_chains feature.

Playgound link

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

79583969

Date: 2025-04-21 03:04:49
Score: 1.5
Natty:
Report link

Thank you to everyone for the answers!

I was expecting to get a different output from the code, and I needed to write both functions makeCacheMatrix() and cacheSolve() to make it work. In addition, cacheSolve() cannot use atomic vectors so you need to use a function as an argument, which is very confusing:

> cacheSolve(makeCacheMatrix(yourmatrix)) 

I was able to make it work after sleeping, some more googling and GitHub.

The output I was getting from makeCacheMatrix() is just letting me know that the functions and values are being stored in the environment for their use later by cacheSolve().

As SamR commented, I think is a very confusing exercise.

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

79583967

Date: 2025-04-21 03:01:48
Score: 4.5
Natty:
Report link

I had a similar situation, and I found the accepted answer in the link shared by chb to work like a charm:
How to parse MySQL built-code from within Python?

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

79583954

Date: 2025-04-21 02:33:43
Score: 2
Natty:
Report link
        [Column(TypeName = "bigint")]
        public TimeSpan? LimitTime { get; set; }
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: linxiao

79583950

Date: 2025-04-21 02:25:41
Score: 6.5 🚩
Natty: 4
Report link

Isso acontece porque get_ticks não é um método direto do pygame, mas você pode acessar esse método com pygame.time, escrevendo:

import pygame as p

start_ticks = p.time.get_ticks()

Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (1): não
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Programming Things

79583938

Date: 2025-04-21 02:07:37
Score: 5
Natty:
Report link

I have some funny username ideas you need to look

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

79583931

Date: 2025-04-21 01:56:34
Score: 3
Natty:
Report link

You have to modify the existing tag.

'Step 1

' Note that the CSS property is important

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

79583930

Date: 2025-04-21 01:55:34
Score: 1
Natty:
Report link

So there was a couple things wrong with the setup after digging a little bit more.

  1. https://websiteURL.com and https://www.websiteURL.com are treated differently. Ensure you enable both.

  2. Cors Cookies are restricted very heavily in Safari. There are a couple of ways to bypass but I ended up just changing my configuration to not use cookies but to pass a bearer token in each api call, which has seemingly worked thus far. Another way around it I saw was to put your website and backend in the same domain to avoid the cors issue altogther. Proxies were the last thing I saw that could be a solution.

*A warning, ChatGPT and other chat bots can be a good starting point and do a lot of meaningful tasks, but for some more nuanced issues like this, they can't problem solve. I spent quite a few hours going back and forth with them to no avail. Relying on them too heavily can cause more harm than good for issues like this that are not so straight forward. Forums, youtube videos, and the documentation of whatever services you are using are all sources that should be also be leveraged. A big lesson for me going forward

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

79583926

Date: 2025-04-21 01:47:32
Score: 5
Natty: 6.5
Report link

Follow this guideline and it should fix your issue https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply

Reasons:
  • Blacklisted phrase (1): this guide
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Hasan Sawan

79583925

Date: 2025-04-21 01:46:32
Score: 1
Natty:
Report link

All the example I've seen don't clean the MS attributes.

OpenSSL 3.5.0 8 Apr 2025

Extract a clean private key (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -nocerts -nodes | openssl rsa -out private.key

Extract the public certificate (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -clcerts -nokeys | openssl x509 -out pub.crt

Extract public pem (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -clcerts -nokeys | openssl x509 -out pub.pem

Extract the CA chain (if present) (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -cacerts -nokeys | openssl x509 -out somechain.crt

Extract Public Key from clean private key

openssl rsa -in private.key -pubout -out public.key

If you ever need to password-protect the private key during export

openssl rsa -in private.key -aes256 -out private-secure.key

Check if the *.crt, *.pem, work with your *.key / visually match the output

openssl rsa -noout -modulus -in private.key

openssl x509 -noout -modulus -in pub.crt

openssl x509 -noout -modulus -in pub.pem

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

79583923

Date: 2025-04-21 01:40:30
Score: 2.5
Natty:
Report link

In my case the parameter passed null for int value. Make sure that required parameters are passsed correctly

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

79583922

Date: 2025-04-21 01:38:30
Score: 0.5
Natty:
Report link

I suspect that the issue is due to the fact that the shap_values array has slight differences in its output format depending on the model used (e.g., XGBoost vs. RandomForestClassifier).

You can successfully generate SHAP analysis plots simply by adjusting the dimensions of the shap_values array.

Since I don't have your data, I generated a sample dataset as an example for your reference:

import numpy as np
import pandas as pd
import shap
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split

# Generate sample data
np.random.seed(42)
features = pd.DataFrame({
    "feature_1": np.random.randint(18, 70, size=100),
    "feature_2": np.random.randint(30000, 100000, size=100),
    "feature_3": np.random.randint(1, 4, size=100), 
    "feature_4": np.random.randint(300, 850, size=100),
    "feature_5": np.random.randint(1000, 50000, size=100)
})
target = np.random.randint(0, 2, size=100)
features_names = features.columns.tolist()

# The following code is just like your example.
X_train, X_test, y_train, y_test = train_test_split(features, target, test_size=0.2, random_state=42)
rf_model = RandomForestClassifier(n_estimators=100, random_state=42)
rf_model.fit(X_train, y_train)
y_pred = rf_model.predict(X_test)
explainer = shap.TreeExplainer(rf_model)
shap_values = explainer.shap_values(X_test)

# Adjust the dimensions of the shap_values object.
shap.summary_plot(shap_values[:,:,0], X_test, feature_names=features_names)
shap.summary_plot(shap_values[:,:,0], X_test, feature_names=features_names, plot_type="bar")

enter image description here

enter image description here

With the above, you can successfully run the SHAP analysis by simply adjusting shap_values to shap_values[:,:,0].
As for what the third dimension of shap_values represents when using RandomForestClassifier, you can explore it further on your own.

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 陳俊方

79583921

Date: 2025-04-21 01:32:29
Score: 2.5
Natty:
Report link

u can do it via code editors, if u connect your code editor with ur github repo, u can commit ur code immediately without typing `git add` u will juts need to write the name of ur commit and that's all

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

79583917

Date: 2025-04-21 01:21:27
Score: 1
Natty:
Report link

It's the - in line 19, it's showing up when I paste to a file as — and causing an issue.

Change line 19 to:

            Write-Host "Skipping '$($_.Name)' already exists in $baseFolder"

Once I did that with your script, it ran fine.

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

79583905

Date: 2025-04-21 01:01:23
Score: 0.5
Natty:
Report link

Since Angular 19

You can clean unused imports easily with a new schematic:

$ ng generate @angular/core:cleanup-unused-imports
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: millenion

79583904

Date: 2025-04-21 01:00:22
Score: 1.5
Natty:
Report link

Extract a clean private key (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -nocerts -nodes | openssl rsa -out private.key

Extract the public certificate (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -clcerts -nokeys | openssl x509 -out pub.crt

Extract public pem (no MS Bag Attributes)

openssl pkcs12 -in your.pfx -clcerts -nokeys | openssl x509 -out pub.pem

Extract the CA chain (if present)

openssl pkcs12 -in your.pfx -cacerts -nokeys -out CA_chain.crt

Extract Public Key from clean private key

openssl rsa -in private.key -pubout -out public.key

If you ever need to password-protect the private key during export

openssl rsa -in private.key -aes256 -out private-secure.key

Check if the *.crt, *.pem, work with your *.key / visually match the output

openssl rsa -noout -modulus -in private.key

openssl x509 -noout -modulus -in pub.crt

openssl x509 -noout -modulus -in pub.pem

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

79583900

Date: 2025-04-21 00:57:21
Score: 0.5
Natty:
Report link
package main

import (
    "fmt"
    "time"
)

func main() {
    input := "2025-04-21T09:18:00Z" // ISO 8601 string
    t, err := time.Parse(time.RFC3339, input)
    if err != nil {
        panic(err)
    }
    fmt.Println("Parsed Time:", t)
    fmt.Println("Local Time:", t.Local())
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: maestrom4

79583899

Date: 2025-04-21 00:56:21
Score: 2.5
Natty:
Report link

go get -u ./...

go install github.com/oligot/go-mod-upgrade@latest

go-mod-upgrade

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

79583898

Date: 2025-04-21 00:54:20
Score: 1
Natty:
Report link

If you want

func xor(a, b bool) bool {
    return a != b
}
fmt.Println(xor(true, false)) // true
fmt.Println(xor(true, true))  // false
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: maestrom4

79583891

Date: 2025-04-21 00:45:18
Score: 0.5
Natty:
Report link

Thanks to the suggestion from Jmb about using ndarray::ArrayView2, I was able to get create the attribute with the desired DATASPACE definition:

use anyhow::{Ok, Result};
use hdf5::types::FixedAscii;
use hdf5::{Dataspace, File};
use std::path::PathBuf;
use std::str::Bytes;

use ndarray::ArrayView2;

fn main() -> Result<()> {
  let hdf5_path = PathBuf::from(
      "SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5",
  );
  let file = File::open_rw(hdf5_path)?;

  let gmtco_name =
      "GMTCO_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5";

  let attr_name = "FixedAscii_2D_array";
  let ascii_array: hdf5::types::FixedAscii<79> =
      hdf5::types::FixedAscii::from_ascii(&gmtco_name)?;
  let ascii_array = [ascii_array];
  let data = ArrayView2::from_shape((1, 1), &ascii_array)?;
  file.new_attr::<hdf5::types::FixedAscii<79>>()
      .shape([1, 1])
      .create(attr_name)?
      .write(&data)?;

  Ok(())
}

which results in the attribute (as shown via h5dump):

$> h5dump -a FixedAscii_2D_array SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5

HDF5 "SVM15_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5" {
ATTRIBUTE "FixedAscii_2D_array" {
   DATATYPE  H5T_STRING {
      STRSIZE 79;
      STRPAD H5T_STR_NULLPAD;
      CSET H5T_CSET_ASCII;
      CTYPE H5T_C_S1;
   }
   DATASPACE  SIMPLE { ( 1, 1 ) / ( 1, 1 ) }
   DATA {
   (0,0): "GMTCO_npp_d20181005_t2022358_e2024003_b35959_c20181008035331889474_cspp_bck.h5\000"
   }
}
}

As far as I can tell, there is as yet no high-level interface to set STRPAD to H5T_STR_NULLTERM rather than H5T_STR_NULLPAD, however I believe this can be done using the hdf5-sys crate in an unsafe block.

I have created a git repo containing many examples of reading and writing HDF5 (and NetCDF4) attributes and datasets (including several variants of the above solution) at https://codeberg.org/gpcureton/hdf5_netcdf_test.rs , in the hope that it may be useful for people trying to use the Rust interface to HDF5 and NetCDF4.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: geoff.cureton

79583881

Date: 2025-04-21 00:25:14
Score: 1.5
Natty:
Report link

This solution works including iOS 18.

@objc @discardableResult private func openURL(_ url: URL) -> Bool {
    var responder: UIResponder? = self
    while responder != nil {
        if let application = responder as? UIApplication {
            if #available(iOS 18.0, *) {
                application.open(url, options: [:], completionHandler: nil)
                return true
            } else {
                return application.perform(#selector(openURL(_:)), with: url) != nil
            }
        }
        responder = responder?.next
    }
    return false
}

Solution from https://stackoverflow.com/a/78975759/1915700

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chetan kasundra

79583880

Date: 2025-04-21 00:25:14
Score: 1.5
Natty:
Report link

First, ensure that react-toastify was installed correctly. Run the following command in your terminal to double-check:

npm list react-toastify npm install --save react-toastify

Once you install it, make sure the package exists in your node_modules directory. You can navigate to node_modules/react-toastify to confirm its presence.

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

79583869

Date: 2025-04-21 00:08:11
Score: 2.5
Natty:
Report link

Ok, I figured it. I went to the spreadsheet and went to each sheet. Some had 71 rows of data, but a little over 1000 total rows. This was pretty consistent along all the sheets. So I went to each one and deleted the majority of the empty rows. They are filled in with an importrange command, so as more is added they will fill in more rows, but for now the execution time went from 30+ sec and timing out, to 11.1 secs.

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

79583867

Date: 2025-04-21 00:04:10
Score: 1
Natty:
Report link

Make sure you're importing it correctly:

import { ToastContainer, toast } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';

Also, don't forget to include the <ToastContainer /> somewhere in your app, like in App.js or _app.js.

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

79583856

Date: 2025-04-20 23:41:05
Score: 0.5
Natty:
Report link

It sounds like you are facing a challenging intermittent issue with your Java application querying the DB2 database. Here are some potential areas to investigate that might help resolve the problem:

**Resource Limits**: Look for resource limits on your DB2 instance, such as connection limits or memory usage, that may affect query execution.

**SQL Execution Context**: Verify if there are any environmental differences between running your query through the application versus the DB2 client. For example, check user permissions or roles associated with the connection used by the Java application.

**Debug Logging**: Add debug logging in your application to capture query execution, parameters, and connection details to isolate when the behavior changes.

**DB2 Configuration**: Review DB2 configuration settings, such as optimization or locking options, that might impact query behavior intermittently.

If the issue persists after investigating these areas, consider enabling detailed DB2 tracing to gather more information about query execution and performance. This may provide additional insights to help pinpoint the underlying cause.

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

79583855

Date: 2025-04-20 23:41:04
Score: 3
Natty:
Report link

Question 1 (Simplified English Version - WordPress 403 Error)

Title: Python WordPress.com API: 403 Error (User cannot publish posts) when publishing

Body:

Hi everyone,

I'm trying to automatically publish posts to my WordPress.com blog using Python (requests library) and an Application Password.

However, when I send a POST request to the /posts/new endpoint using code similar to the example below, I consistently get a 403 Forbidden - User cannot publish posts error.

Python

# Example code used for publishing (some values changed)
import requests, json, base64
BLOG_URL = "https://aidentist.wordpress.com"
WP_USER = "sonpp" # My WP.com username
WP_PASSWORD = "k" # App password used (tried regenerating)
api_url = f"https://public-api.wordpress.com/rest/v1.1/sites/{BLOG_URL.split('//')[1]}/posts/new"
post_data = {"title": "Test Post", "content": "Test content", "status": "publish"}
credentials = f"{WP_USER}:{WP_PASSWORD}"
token = base64.b64encode(credentials.encode()).decode()
headers = {"Authorization": f"Basic {token}", "Content-Type": "application/json"}
try:
    response = requests.post(api_url, headers=headers, json=post_data)
    response.raise_for_status()
except requests.exceptions.RequestException as e:
    print(f"Error: {e}")
    # Error output includes:
    # HTTP Status Code: 403
    # Response Body: {"error": "unauthorized", "message": "User cannot publish posts"}

What I've checked:

Does anyone know other common reasons for this specific 403 - User cannot publish posts error when trying to publish via the API? Are there other things I should check, like hidden scopes for Application Passwords or potential Free plan limitations related to API publishing?

Thanks for any insights!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): Does anyone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 손현아

79583853

Date: 2025-04-20 23:40:04
Score: 2.5
Natty:
Report link

Uwe's snippet worked for me. Was driving me crazy.

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

79583849

Date: 2025-04-20 23:33:03
Score: 2.5
Natty:
Report link
  1. Check the "public/" Directory
  2. Base Path Configuration
  3. Image Optimization (Next.js next/image)
  4. Custom Server / Deployment Issues
  5. CSS / JS Not Loading?
  6. MIME Type / Content Errors
  7. Check File Naming
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: CrazyDev

79583840

Date: 2025-04-20 23:13:59
Score: 2
Natty:
Report link

It means that affinity is not implemented in libgomp. The message is printed here: https://github.com/gcc-mirror/gcc/blob/a9fc1b9dec92842b3a978183388c1833918776fd/libgomp/affinity.c#L51

The whole file looks like a dummy implementation.

An alternative is to use a different OpenMP implementation. The affinity implementation in LLVM seems functional: https://github.com/llvm/llvm-project/blob/f87109f018faad5f3f1bf8a4668754c24e84e886/openmp/runtime/src/z_Windows_NT_util.cpp#L598

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

79583837

Date: 2025-04-20 23:09:58
Score: 2
Natty:
Report link

Silver game

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

79583834

Date: 2025-04-20 23:06:57
Score: 2
Natty:
Report link

It's not possible, but you can make your profile private so people can't browse your images.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Colin R. Turner

79583830

Date: 2025-04-20 23:03:56
Score: 1
Natty:
Report link

Flash Bitcoin is a unique cryptocurrency solution designed to provide temporary Bitcoin transactions in a fast, secure, and efficient manner. Unlike traditional Bitcoin, Flash Bitcoin has a limited lifespan, making it ideal for specific use cases where temporary holdings are beneficial. Whether you’re a trader, a crypto enthusiast, or exploring new ways to use cryptocurrencies, Flash Bitcoin offers a revolutionary approach to managing digital assets.

🔑 Key Characteristics of Flash Bitcoin

Flash Bitcoin stands out due to its unique features that differentiate it from traditional Bitcoin:

⏳ Temporary Holding

Flash Bitcoin mirrors traditional Bitcoin in value and function but is designed to stay in your wallet for a limited time. Depending on the software used for the transaction, Flash Bitcoin can remain securely stored in your wallet for 90 to 360 days before being automatically rejected by the blockchain network.

🔒 Secure Generation

All Flash Bitcoin is generated using specialized software, ensuring that transactions are both efficient and secure. This guarantees the highest level of reliability for your Flash Bitcoin transactions.

🛒 How to Order Flash Bitcoin

Ordering Flash Bitcoin is easy and accommodates both small and large transactions:

Minimum Order: Start with a minimum order of $2,000 BTC, where you only pay $200 to receive $2,000 worth of Flash BTC.

Maximum Order: For larger transactions, you can order up to a maximum of $10,000,000 BTC, allowing significant flexibility in transaction amounts.

🌟 Why Choose FastFlashBitcoins.com for Flash Bitcoin?

At FastFlashBitcoins.com, we are committed to providing the best Bitcoin flashing service online, ensuring your transactions are secure, reliable, and easy to manage. Here’s why we are the best choice for Flash Bitcoin:

🎯 Disappearing Tokens

Flash Bitcoin will automatically disappear from any wallet after 90 to 360 days, including any converted cryptocurrency. This feature ensures secure use while requiring careful management of your digital assets.

🔁 Limited Transfers

Flash Bitcoin has a transfer limit of 12 times, enhancing security and minimizing risks. This limitation ensures that your crypto remains traceable and manageable during its lifespan.

♻ Versatile Conversion

Flash Bitcoin can be converted into any other cryptocurrency on exchanges. However, if you convert Flash Bitcoin into another cryptocurrency, the converted coin will also disappear after 90 days.

⚙ Features of Flash Bitcoin

Flash Bitcoin is packed with features that make it an ideal solution for anyone looking for temporary Bitcoin transactions:

✅ 100% Confirmed Transactions: Every transaction is fully confirmed, ensuring reliability and peace of mind.

⚡ Quick Confirmation: Flash Bitcoin transactions are processed with priority for maximum speed, ensuring a seamless user experience.

🌍 Wide Wallet Compatibility: Flash Bitcoin is compatible with all wallet types, including SegWit addresses, legacy wallets, and bch32 wallets.

🚫 Unstoppable Transactions: Once initiated, Flash Bitcoin transactions cannot be canceled, making it a powerful and secure tool.

💸 Easy Spendability: Spend Flash Bitcoin easily on any address, regardless of the wallet type or format.

💎 Why Flash Bitcoin is the Best Solution

Flash Bitcoin offers a unique way to engage with cryptocurrencies, combining security, speed, and versatility in one innovative package. Whether you’re looking to:

Transfer large amounts of Bitcoin temporarily,

Convert cryptocurrencies with a limited lifespan, or

Experiment with disappearing tokens,

Flash Bitcoin provides a secure and reliable platform for all your needs.

🚀 Experience Flash Bitcoin Today

Take advantage of this revolutionary way to interact with cryptocurrencies. Whether you’re buying or selling Flash Bitcoin, FastFlashBitcoins.com is your trusted partner for secure and efficient transactions.

🌍 Why Choose FastFlashBitcoins.com

🔐 Reliable Platform: Enjoy a seamless transaction process with 100% confirmed transactions.

🧑‍💼 Expert Guidance: Our team is here to guide you through every step of the flashing process.

🔒 Secure Transactions: We prioritize the safety of your digital assets with specialized software and proven security protocols.

💬 Get Started Now

Don’t miss out on this innovative cryptocurrency solution. Experience the convenience, security, and flexibility of Flash Bitcoin today with FastFlashBitcoins.com.

💬https://telegram.me/flashsbitcoins

📲 Phone: +1 (770) 666–2531

Unlock the power of temporary Bitcoin with Flash Bitcoin and elevate your crypto experience today!

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

79583822

Date: 2025-04-20 22:45:52
Score: 0.5
Natty:
Report link

Just to sum up the comments above:

Adjusting the original example to Flux.from(req.receive().aggregate().asString().delayElement(Duration.ofNanos(1)).filter(str -> (str.length() > 0))).next(); resulted in being able to exceed the 500 connections per second.

Upon studying delayElement the documentation states that the parallel scheduler is then used.

Thus the constraint appears to be the scheduler. Once that theory was established it was tested by replacing delayElement with .subscribeOn(Schedulers.boundedElastic()) and confirmed to have the same result (being able to exceed 500).

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: G.K. Meier

79583821

Date: 2025-04-20 22:44:52
Score: 1.5
Natty:
Report link

The issue was the worker threads were actually disabled (via preprocessor defines not shown in code). You must continue to use worker threads even with the new blk_mq.

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

79583814

Date: 2025-04-20 22:33:50
Score: 2.5
Natty:
Report link

This extension actually works.
Preview of the extension
DevTools - Sources downloader

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

79583812

Date: 2025-04-20 22:33:50
Score: 3.5
Natty:
Report link

Delighted to have https://stackoverflow.com/users/985454/qwerty answer! Helped me here!

Object.assign(window, { myObj }) is a bit cleaner and allows for snippet automation

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dickson Souza

79583804

Date: 2025-04-20 22:23:48
Score: 1.5
Natty:
Report link

If you are trying to execute a while or for loop then you are not ending the statement within with a ;:
while [...]; do command; done;

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

79583802

Date: 2025-04-20 22:22:47
Score: 5
Natty: 5.5
Report link

it doesn't matter what I type, python3 or python, it gives me the same message "Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases." What do I do?

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

79583801

Date: 2025-04-20 22:21:47
Score: 2.5
Natty:
Report link

If you are using VS, test closing VS files. That worked for me

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

79583798

Date: 2025-04-20 22:17:46
Score: 1.5
Natty:
Report link

An example is provided by the official Toy tutorial in Ch2.
You'll just need to extract out the relevant parts to end up with the code.
https://github.com/llvm/llvm-project/blob/main/mlir/examples/toy/Ch2/toyc.cpp

Commit snapshot with line numbers

https://github.com/llvm/llvm-project/blob/f87109f018faad5f3f1bf8a4668754c24e84e886/mlir/examples/toy/Ch2/toyc.cpp#L93-L111

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

79583789

Date: 2025-04-20 22:07:44
Score: 3
Natty:
Report link

You need to use Communication notifications in ios. It is an interface designed by Apple to allow communication apps send notification in that manner. You can learn more about it here

https://developer.apple.com/documentation/usernotifications/implementing-communication-notifications

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

79583788

Date: 2025-04-20 22:04:43
Score: 0.5
Natty:
Report link

For cache: prioritize availability, low latency, throughput. For durability: enable RDB/AOF on Redis. RDB spikes CPU/memory; AOF reduces write latency but impacts performance. Configure RDB intervals to balance performance/data loss. Avoid AOF every-write mode; everysec is better but can lose data. Use Primary-Replica replication and apply persistence only on replicas to reduce primary load.

Basically, enable Primary-Replica replication using the ReplicaOf command. Make any cache related calls only to the Primary instances. Use the Replicas for persisting cache data. If you end up using AOF (Append-Only File) persistence, use everysec. This way you will continue to get high-throughput, low latency from your primary instances and will have persistence data in case you need to reload with your Replica instances taking on the load of writing the persistence data to disk.

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

79583778

Date: 2025-04-20 21:50:40
Score: 1.5
Natty:
Report link

While the rule numbers do not appear in the code editor, it is possible to see them in the problems listed by the Problems tab at the bottom of the VS Code window.

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

79583773

Date: 2025-04-20 21:43:39
Score: 1.5
Natty:
Report link

That MONZA error is coming from Intel's graphics driver. Update your Intel graphics driver, and it should stop appearing.

For the D3D12Core.dll error, that shows up because Visual Studio can't find its .pdb. Go to Tools > Options > Debugging > Symbols. Switch 'Symbol search preferences' to 'Search for all module symbols unless excluded', and check 'Microsoft Symbol Servers' as a search location.

enter image description here

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

79583771

Date: 2025-04-20 21:36:37
Score: 1.5
Natty:
Report link

We recently fell into this exact same trap. This was eventually identified as a symptom of having an environment with only Enhanced Data Model website(s). The adx_annotations/adx.annotations.html web resource will only be available if your environment has had a Standard Data Model portal/website provisioned. We proved this by creating a standard data model site and the missing web resource was then available. Having said that, we then discovered that there appears to be a new web resource intended for the enhanced data model sites: mspp_annotations/mspp.annotations.html

This worked perfectly for us as a replacement for the adx_ version.

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

79583768

Date: 2025-04-20 21:30:36
Score: 2
Natty:
Report link

Similar to the answer from @akshay girpunje, the solution for me was in the Maven settings. Though a bit different, I needed to remove the Label from the Maven Project Configuration.

Manage Jenkins-> System Configuration-> Maven Project Configuration

I cleared the value in the "Labels" field. It was previously set to 'Master'.

After that, my builds would exit the Queue and actually build. Particularly those builds that call other build configurations

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rob

79583767

Date: 2025-04-20 21:28:35
Score: 6.5 🚩
Natty: 4
Report link

It's been a long time since these posts, but it's the only thing I have found online that comes close to my question:

Using the "Save Image" tool on google earth pro the Legend is only recognizing 1 of 3 polygons I have on the screen. They each have their own outline color, but no shading (I need the map to show the image below). The problem is that on the "Places" side bar all three polygons show up as white, so the legend only recognizes one (I assume). Why is the sidebar not reflecting the actual color? How do I fix this? I am adding a screenshot for clarity. TIA!

Carla

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1.5): fix this?
  • RegEx Blacklisted phrase (2): TIA
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Carla de la Rosa

79583761

Date: 2025-04-20 21:13:30
Score: 2
Natty:
Report link

Trouble with IR Connection

We couldn't find an IR emitter on your device. Some devices may not have this feature. Please check your device's specifications, or consult your user manual for IR compatibility.

Close

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

79583754

Date: 2025-04-20 21:02:28
Score: 0.5
Natty:
Report link

I'd use rectangular selection at column 1 and then hit the tab key.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: starball

79583748

Date: 2025-04-20 21:00:27
Score: 1
Natty:
Report link

Just do this
<p style="font-size:60px; color: white;" > Step 1: </p>

separate CSS properties with ;

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

79583740

Date: 2025-04-20 20:49:25
Score: 5
Natty:
Report link

Have you checked if there is any class imblance within the dataset?

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

79583739

Date: 2025-04-20 20:47:24
Score: 3.5
Natty:
Report link

i use custom action because custom function don't permitted type Future and async function in custom function

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

79583734

Date: 2025-04-20 20:39:23
Score: 2
Natty:
Report link

Stackoverflow Question/Answer: I have a file that may be in a different place on each user's machine. Is there a way to implement a search for the file? A way that I can pass the file's name and the directory tree to search in? Find a file in python

Bing AI gives some examples, listed below... but I'm not sure what you're passing in as a filename. Is it just supposed to find any file with that filename in the whole operating system? I think you need to give it a hint as to where your file might be.

import os

def find_filename(directory, filename):
    files = os.listdir(directory)
    if filename in files:
        return os.path.join(directory, filename)
    else:
        return None

# Example usage
directory = '/path/to/directory'
filename = 'example.txt'
result = find_filename(directory, filename)
print(result if result else "File not found")
import os

def find_filename(directory, filename):
    for root, dirs, files in os.walk(directory):
        if filename in files:
            return os.path.join(root, filename)
    return None

# Example usage
directory = '/path/to/directory'
filename = 'example.txt'
result = find_filename(directory, filename)
print(result if result else "File not found")
import subprocess

def find_file(root_folder, filename):
    result = subprocess.run(['find', root_folder, '-name', filename], stdout=subprocess.PIPE, text=True)
    files = result.stdout.splitlines()
    return files

# Example usage
file_paths = find_file('/path/to/search', 'target_file.txt')
if file_paths:
    for path in file_paths:
        print(f'File found at: {path}')
else:
    print('File not found')
Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Blacklisted phrase (1): Is there a way
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: soylentkim

79583732

Date: 2025-04-20 20:34:21
Score: 1
Natty:
Report link

Put 0s for those entries. You should take a close look at ?att_gt before using this function. Here is a screenshot from the documentation.

enter image description here

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

79583730

Date: 2025-04-20 20:34:21
Score: 3.5
Natty:
Report link

What exactly are you trying to do i may be able to help i have a file organizer the works so i may have some code that may be useful

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

79583728

Date: 2025-04-20 20:31:21
Score: 0.5
Natty:
Report link

My experience: be careful with ~ (tilde) in paths if you configure cron as root but work as another user.

I have root and USERNAME users and I want to backup things via a small script and save result to the Dropbox folder.

Here is content of crontab: backup.sh | gzip --best > ~/Dropbox/backup/backup.sql.gz

When I run the script as USERNAME everything is OK, script creates file at /home/USERNAME/Dropbox/backup/backup.sql.gz (pay attention to /home/USERNAME/)

But when I configured cron as root and the script is launched by cron it tries to create file at /root/Dropbox/backup/backup.sql.gz (pay attention to /root/) and it fails with the error cannot create /root/Dropbox/backup/backup.sql.gz: Directory nonexistent because there is no /root/Dropbox/backup folder.

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

79583714

Date: 2025-04-20 20:17:18
Score: 3.5
Natty:
Report link

I discover the body was arriving in chunks so i had to wait for all of it to arrive before proceeding

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

79583710

Date: 2025-04-20 20:11:16
Score: 3.5
Natty:
Report link

This is very interesting, but no one will help you, only some nerd that has nothing to do

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Артем Демьянов

79583709

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

According to the official statement, "gemini-2.0-flash-exp-image-generation is not currently supported in a number of countries in Europe, Middle East & Africa".

If you're geo-blocked, you options are:

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

79583699

Date: 2025-04-20 20:00:13
Score: 1
Natty:
Report link

You can try following query

SELECT ut.usr_uid, ut.usr_lastname, ut.usr_firstname, nd.nd_abletoplay
FROM usertable AS ut
LEFT JOIN namedown AS nd
    ON ut.usr_uid = nd.nd_playeruid AND nd.nd_matchuid = 869;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abdul Rashid

79583680

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

I've have the same issue in a shared hosting subdomain with SQLite enabled, and my solution has been modify this line in config/database.php:

// 'database' => env('DB_DATABASE', database_path('database.sqlite')),
'database' => database_path('database.sqlite'),
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same issue
  • Low reputation (0.5):
Posted by: entoniperez

79583674

Date: 2025-04-20 19:27:05
Score: 0.5
Natty:
Report link
' Solution 4
Private Sub Get_Shell_Fonts()
    
    'https://stackoverflow.com/questions/7408024/how-to-get-a-font-file-name
    '-----------------------------------------------------------------------------------------------
    ' Needed Reference for Early-Binding:
    '    Library Shell32
    '        C:\Windows\SysWOW64\shell32.dll
    '        Microsoft Shell Controls And Automation
    '-----------------------------------------------------------------------------------------------
    ' Common Vars
    Dim lng_RowID      As Long      ' Base1 incr Before Use
    Dim lng_FontFamily As Long      ' Base1 incr Before Use
    Dim lng_SubFont    As Long      ' Base1 incr Before Use
    Dim str_Out        As String    ' For save As TSV Cp 1200
    
    lng_RowID = 0
    lng_FontFamily = 0
    lng_SubFont = 0
    str_Out = ""
    '-----------------------------------------------------------------------------------------------
    ' Init Shell
    Dim obj_Shell As Shell32.Shell
    Set obj_Shell = New Shell32.Shell 'Late Binding: Set obj_Shell = CreateObject("Shell.Application")
    '-----------------------------------------------------------------------------------------------
    ' Init Folder
    ' HardCoded: Set obj_Folder = obj_Shell.NameSpace("C:\Windows\Fonts")
    ' Better: Environment.SpecialFolder: Fonts = 20 = A virtual folder that contains fonts.
    Dim obj_Folder As Shell32.Folder
    Set obj_Folder = obj_Shell.NameSpace(VBA.Environ("SystemRoot") & "\Fonts")
    If obj_Folder Is Nothing Then
        Debug.Print "Can't Init Folder"
    Else
        '-------------------------------------------------------------------------------------------
        ' Collect FieldNames BrutForce
        
        ' Sample From Win 8.1 German
        
        '  0 = Name
        '  1 = Schriftschnitt
        '  2 = Ein-/ausblenden
        '  3 = Entwickelt für
        '  4 = Kategorie
        '  5 = Designer/Hersteller
        '  6 = Einbindbarkeit von Schriftarten
        '  7 = Schriftarttyp
        '  8 = Familie
        '  9 = Erstelldatum
        ' 10 = Änderungsdatum
        ' 11 = Größe
        ' 12 = Sammlung
        ' 13 = Schriftartdateinamen            = FullFileName
        ' 14 = Schriftartversion
        
        Dim int_FieldIndex      As Integer ' Base0
        Dim str_FieldName       As String
        Dim int_FieldCount      As Integer ' Base1
        Dim stra_FieldNames()   As String  ' Base0
        Dim inta_FieldIndices() As Integer ' Base0
        int_FieldCount = 0
        
        For int_FieldIndex = 0 To 1000
            '---------------------------------------------------------------------------------------
            str_FieldName = obj_Folder.GetDetailsOf(Null, int_FieldIndex)
            If str_FieldName = "" Then
                Exit For
            End If
            '---------------------------------------------------------------------------------------
            ' Enlarge Array
            ReDim Preserve inta_FieldIndices(0 To int_FieldCount)
            ReDim Preserve stra_FieldNames(0 To int_FieldCount)
            '---------------------------------------------------------------------------------------
            ' Store
            inta_FieldIndices(int_FieldCount) = int_FieldIndex
            stra_FieldNames(int_FieldCount) = str_FieldName
            '---------------------------------------------------------------------------------------
            ' Incr FieldCount
            int_FieldCount = int_FieldCount + 1
            '---------------------------------------------------------------------------------------
        Next int_FieldIndex
        '-------------------------------------------------------------------------------------------
        ' Print Fields // Header For TSV
        str_Out = "RowID" & vbTab & "FontFamilyID" & vbTab & "SubFontID"
        For int_FieldIndex = 0 To int_FieldCount - 1
            str_Out = str_Out & vbTab & stra_FieldNames(int_FieldIndex)
            Debug.Print inta_FieldIndices(int_FieldIndex), stra_FieldNames(int_FieldIndex)
        Next int_FieldIndex
        str_Out = str_Out & vbCrLf
        '-------------------------------------------------------------------------------------------
        ' Loop Files
        Dim obj_FolderItem As Shell32.FolderItem
        For Each obj_FolderItem In obj_Folder.Items
            '---------------------------------------------------------------------------------------
            lng_FontFamily = lng_FontFamily + 1
            lng_RowID = lng_RowID + 1
            lng_SubFont = 0
            '---------------------------------------------------------------------------------------
            Debug.Print
            Debug.Print lng_RowID, lng_FontFamily, lng_SubFont;
            str_Out = str_Out & lng_RowID & vbTab & lng_FontFamily & vbTab & lng_SubFont
            For int_FieldIndex = 0 To int_FieldCount - 1
                Debug.Print , obj_Folder.GetDetailsOf(obj_FolderItem, int_FieldIndex);
                str_Out = str_Out & vbTab & obj_Folder.GetDetailsOf(obj_FolderItem, int_FieldIndex)
            Next int_FieldIndex
            str_Out = str_Out & vbCrLf
            '---------------------------------------------------------------------------------------
            ' Loop Fonts in Family: is Not a Filesystem-Object // No Recursion needed: No more Subs
            Dim obj_SubFolder As Shell32.Folder
            Dim obj_SubFolderItem As Shell32.FolderItem
            If obj_FolderItem.IsFolder Then
                lng_SubFont = 0
                Set obj_SubFolder = obj_FolderItem.GetFolder
                For Each obj_SubFolderItem In obj_SubFolder.Items
                    lng_SubFont = lng_SubFont + 1
                    lng_RowID = lng_RowID + 1
                    
                    Debug.Print
                    Debug.Print lng_RowID, lng_FontFamily, lng_SubFont;
                    str_Out = str_Out & lng_RowID & vbTab & lng_FontFamily & vbTab & lng_SubFont
                    For int_FieldIndex = 0 To int_FieldCount - 1
                        Debug.Print , obj_SubFolder.GetDetailsOf(obj_SubFolderItem, int_FieldIndex);
                        str_Out = str_Out & vbTab & obj_SubFolder.GetDetailsOf(obj_SubFolderItem, int_FieldIndex)
                    Next int_FieldIndex
                    str_Out = str_Out & vbCrLf
                Next obj_SubFolderItem
            End If
        Next obj_FolderItem
    End If 'If obj_Folder Is Nothing Then
    '-----------------------------------------------------------------------------------------------
    ' CleanUp
    Set obj_SubFolderItem = Nothing
    Set obj_SubFolder = Nothing
    Set obj_FolderItem = Nothing
    Set obj_Folder = Nothing
    Set obj_Shell = Nothing
    '-----------------------------------------------------------------------------------------------
    ' Optional Store str_Out as TSV CP1200 UTF16
    ' VBA Style:
    Dim int_FileHandler As Integer, byta() As Byte
    byta() = str_Out
    int_FileHandler = FreeFile()
    Open "C:\Out.csv" For Binary As int_FileHandler  ' Sample Target !!!!!!!! Please Adjust !!!!!!!!
    Put int_FileHandler, 1, byta()
    Close int_FileHandler
    '-----------------------------------------------------------------------------------------------
    Debug.Print
    Debug.Print "wdi ******"
    '-----------------------------------------------------------------------------------------------

End Sub
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Uwe92

79583666

Date: 2025-04-20 19:11:02
Score: 1
Natty:
Report link

import matplotlib.pyplot as plt

import matplotlib.patches as patches

# Create figure and axes

fig, ax = plt.subplots(figsize=(8, 6))

# Room dimensions (3m x 4m)

room = patches.Rectangle((0, 0), 4, 3, linewidth=2, edgecolor='black', facecolor='whitesmoke')

ax.add_patch(room)

# Main wardrobe wall (4m wall)

wardrobe = patches.Rectangle((0.1, 0.1), 3.8, 0.6, linewidth=1, edgecolor='black', facecolor='lightgray', label='خزائن ملابس')

ax.add_patch(wardrobe)

# Shoe storage wall (3m wall)

shoe_storage = patches.Rectangle((3.3, 0.8), 0.6, 2, linewidth=1, edgecolor='black', facecolor='lightblue', label='رفوف أحذية')

ax.add_patch(shoe_storage)

# Mirror on side wall

mirror = patches.Rectangle((0.1, 2.1), 0.4, 0.8, linewidth=1, edgecolor='black', facecolor='lavender', label='مرآة')

ax.add_patch(mirror)

# Glass sliding doors

glass_doors = patches.Rectangle((0, 2.8), 4, 0.2, linewidth=1, edgecolor='blue', facecolor='lightcyan', label='أبواب زجاج سحب')

ax.add_patch(glass_doors)

# Optional center island

island = patches.Rectangle((1.5, 1.2), 1, 0.6, linewidth=1, edgecolor='black', facecolor='beige', label='جزيرة وسطية')

ax.add_patch(island)

# Room layout styling

ax.set_xlim(0, 4)

ax.set_ylim(0, 3)

ax.set_aspect('equal')

ax.axis('off')

ax.set_title("مخطط مبدئي لغرفة ملابس 3x4 م", fontsize=14, fontweight='bold')

plt.legend(loc='upper left', bbox_to_anchor=(1, 1))

plt.tight_layout()

plt.show()

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

79583664

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

Swift 5

let myString = "12"
let myInt = Int(myString)!

Ensure, that myString is really an integer though, because this conversion is not handled at all!

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

79583663

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

The issue wasn't with the code itself, but the compiler being used. I don't have the best explanation, but according to the advice that I received from @gregspears:

"Borland C++ 5.x is available for free on various places on the web. This is a full 32-bit version . . . which is pretty much a TurboC that can run in today's MS Windows. Essentially, if your TurboC code works in this later version but not 16 bit TurboC, then this fact may also point to a problem other than your code. You might also find it easier to spend most of your development time in current Windows and this newer version of Borland C++, and then only do a final compile and deploy in 16-bit TurboC for your finished product. ymmv."

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @gregspears
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: LongSleevesssowo

79583658

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

I believe you're looking for @bitCast instead of @intCast.

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

79583657

Date: 2025-04-20 19:00:00
Score: 1
Natty:
Report link
import nltk
from nltk.tokenize import word_tokenize

nltk.download('punkt_tab')
sample_text = "This is random text"
tokens = word_tokenize(sample_text)

print(tokens)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ganesan J

79583653

Date: 2025-04-20 18:50:58
Score: 1
Natty:
Report link

this worked for windows:

after you create the virtual environment, activate it like:

.\virtual-environment\Scripts\activate

you can try putting your virtual environment's address first like:

F:\virtual-environment\Scripts\python.exe -m pip install some-package

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

79583652

Date: 2025-04-20 18:49:58
Score: 1
Natty:
Report link

Ultimately I modified the view to use:

EXTRACT(month from cover_date)

And found that one of the classes had an instance variable that uses as annotated with a formula that was also using the month() function. Updating that to use the above fixed all the issues.

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

79583649

Date: 2025-04-20 18:45:57
Score: 1.5
Natty:
Report link

I've come up with my own solution, which seems a bit cleaner than the one proposed by @david-soroko.

fun <T> Iterable<T>.javaForEach(consumer: Consumer<T>) = forEach(consumer)

The main point here is that the Iterable.forEach takes a Consumer, Kotlin's forEach takes a lambda and explicitly passing the Consumer resolves to the java forEach.
And just changing forEach to javaForEach looks cleaner than always casting.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @david-soroko
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: binarynoise

79583645

Date: 2025-04-20 18:38:55
Score: 3
Natty:
Report link

You can also configure zIndex prop from DefaultEdgeOptions, I think is the better approch here if you want to have all egdes on top of nodes.

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

79583632

Date: 2025-04-20 18:23:52
Score: 3.5
Natty:
Report link

It's used to show variants of glyphs. @Vitox wrote a good answer already. I'm supplementing it with examples of Chinese characters. All these characters are the same code point (U+85AB) but notice they are slightly different.

u85ab 3 variants

E0101, E0102, E0103 are the variation selector 18, 19 and 20.

variation selectors

If you type U+85AB and then the variation selector in a supported text editor, you can type different variants of the same Chinese character.

source: https://youtu.be/cNv2BrmP9SY?t=30

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Probably link only (1):
  • No code block (0.5):
  • User mentioned (1): @Vitox
Posted by: thyu

79583630

Date: 2025-04-20 18:22:51
Score: 10 🚩
Natty: 6.5
Report link

@michael-kay, do you have any planned date to release SaxonJ 13 ?

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @michael-kay
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Daze