79627938

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

gitcrypt, a local.json file, or a NODE_CONFIG environment variable

The last two are trickier to do with CI/CD

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

79627937

Date: 2025-05-19 00:09:02
Score: 2.5
Natty:
Report link

Assuming you want the trailing 365 days for each employee and for each activity date of that employee, I would go with a window function:

SELECT 
  s."Emp ID",
  s."Activity Date",
  SUM(s."Sales") OVER (
    PARTITION BY s."Emp ID"
    ORDER BY s."Activity Date"
    RANGE BETWEEN INTERVAL '365 days' PRECEDING AND INTERVAL '1 day' PRECEDING
  ) AS trailing_12mo_sales
FROM sales s

Based on your input, this will give

| Emp ID | Activity Date | Sales  | trailing_12mo_sales |
| ------ | ------------- | ------ | ------------------- |
| 1234   | 2024-01-01    | 254.22 | NULL                |
| 1234   | 2024-05-08    | 227.10 | 254.22              |
| 5678   | 2023-02-01    | 254.22 | NULL                |
| 5678   | 2024-05-01    | 227.10 | NULL                |

At this point, it should be easy to

to answer business questions like - For all employees active in Jan 2024, what was the trailing 12 months sales for them?

by just doing

WITH jan2024_activities AS (
  SELECT *
  FROM (
    SELECT 
      s.*,
      SUM(s."Sales") OVER (
        PARTITION BY s."Emp ID"
        ORDER BY s."Activity Date"
        RANGE BETWEEN INTERVAL '365 days' PRECEDING AND INTERVAL '1 day' PRECEDING
      ) AS trailing_12mo_sales
    FROM sales s
  ) sub
  WHERE DATE_TRUNC('month', "Activity Date") = DATE '2024-01-01'
)
SELECT "Emp ID", MAX(trailing_12mo_sales) AS jan2024_trailing_sales
FROM jan2024_activities
GROUP BY "Emp ID"

--

NOTE: this does not consider leap years. If that was the exact point of your question please clarify and we can slightly tune the queries

Reasons:
  • RegEx Blacklisted phrase (2.5): please clarify
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: msabba

79627926

Date: 2025-05-18 23:31:55
Score: 2
Natty:
Report link

Depending on exactly what it is that you are trying to do, a quick and dirty workaround is to launch Notepad with elevated privileges, and then go to File -> Open. In the resulting dialog box, you can do many of the same things that would normally require an elevated session of File Explorer.

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

79627915

Date: 2025-05-18 23:06:51
Score: 2.5
Natty:
Report link

You can simply override the window size from the Project Settings > Windows > Size Override when running the game from the editor. You can also use this setting to test multiple aspect ratios.

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

79627911

Date: 2025-05-18 23:00:49
Score: 2.5
Natty:
Report link

from PIL import ImageGrab

# Captura a tela inteira

screenshot = ImageGrab.grab()

screenshot.save("captura_pillow.png")

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rafaela souza cruz

79627900

Date: 2025-05-18 22:36:44
Score: 2.5
Natty:
Report link

For me I had to take a closer look at each of the views I was trying to show in the TabView. I was testing the functionality of the TabView, as I am new to this, and found that each view I wanted to add to the tabview had to also be in a view.

For example, I could not have a home page with just a text element and a spacer. They need to be in a VStack or HStack to make the TabView display properly.

This would have all been a non-issue is had built out the page before trying to create a TabView...

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Drew Darnell

79627899

Date: 2025-05-18 22:36:44
Score: 1
Natty:
Report link

"Pink Heart" is neither image byte data nor a unicode emoji. This works:

await role.edit(display_icon="🩷")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lia Milenakos

79627894

Date: 2025-05-18 22:31:43
Score: 2
Natty:
Report link

For anyone who as well experiences a lack of pg_is_in_recovery in the setup I cam up with the sql level solution a follows

IN_RECOVER_QUERY="do \$\$ begin assert (select pg_is_in_recovery()) = 't', 'no recover';end;\$\$;"
psql -c "$IN_RECOVER_QUERY" -v ON_ERROR_STOP=1

@Laurenz Albe Could you please review, maybe it could be simplified even more.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • User mentioned (1): @Laurenz
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: 404

79627888

Date: 2025-05-18 22:20:41
Score: 1
Natty:
Report link

I encountered similar issue, but instead using c/c++ intelligence , I am using clangd instead.
By providing

    "clangd.arguments": [
        "--compile-commands-dir=${PATH_TO_YOUR_compile-commands.json}"
    ]

my code block is not grayed out as well.

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

79627886

Date: 2025-05-18 22:15:40
Score: 0.5
Natty:
Report link

Use pseudoclases to get the desired element in your global styles file.

.ag-filter-apply-panel{
    .ag-button:first-child {
        //Your awesome style for 'clear' button
    }
    .ag-button:last-child {
        //Your awesome style for 'apply' button
    }
}

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

79627876

Date: 2025-05-18 21:58:36
Score: 3.5
Natty:
Report link

Apakah Kalian siap merasakan sensasi permainan Slot Gacor gampang menang yang mendebarkan? Permainan Slot Gacor MBS88 populer di Indonesia, Memberikan kesempatan menarik untuk meraih kemenangan besar hanya dengan beberapa klik saja. Dengan reputasi sebagai situs slot gacor terbaik, MBS88 memastikan pengalaman bermain yang aman dan adil. Daftar Sekarang!!

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

79627868

Date: 2025-05-18 21:42:32
Score: 0.5
Natty:
Report link

He there, I was facing the exact same issue and have been debugging for a while, however i found something that worked: I removed the message permissions, and then re-added them again. After that, All of a sudden i started receiving messages on my ngrok endpoint again!

Hope that helps!

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: MbBrainz

79627865

Date: 2025-05-18 21:35:30
Score: 2.5
Natty:
Report link

If you are using the iOS Simulator on a MacBook, you need to press down (i.e., "left click") on your trackpad before dragging up or down. Then ScrollView should work just fine.

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

79627862

Date: 2025-05-18 21:32:30
Score: 2
Natty:
Report link


Peter http://www.J.com enter image description here
dat[c(2,7), "referal"] <- NA
header 1 header 2
cell 1 cell 2
cell 3 cell 4

col1 col2 col3

Alex NA URL

Mike URL NA

John URL URL

Peter NA NA

James NA URL

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: لؤي خالد عباد

79627861

Date: 2025-05-18 21:31:29
Score: 1
Natty:
Report link

try

if (filter._id) {
  filter._id = new ObjectId(filter._id)
}

before calling

collection.find(filter)

In json, _id stays a string.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: László Matuska

79627860

Date: 2025-05-18 21:30:29
Score: 2
Natty:
Report link

The conversion specifier for variable c in the printf() function, %f, does not match the initial conversion specifier, %d, which would induce a runtime error in the program's attempt to translate between data types. If you were to shift the variable c from being an integer to being a floating variable beside your later variable b, your code should output the correct answer.

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

79627855

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

For me I used a CommonJS project which is not supported with llamaindex if you use the Stateful Middleware new stuff.

What I did is to switch the package.json to ES modules in Node.js:

"type": "module"

And in the typescript update the other tsconfig.json.

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

79627854

Date: 2025-05-18 21:21:27
Score: 2
Natty:
Report link

En los sistemas distribuidos, las arquitecturas definen cómo se organizan los componentes y cómo interactúan entre sí. Las dos arquitecturas más representativas son cliente-servidor y peer-to-peer (P2P), las cuales presentan diferencias fundamentales en cuanto a roles, escalabilidad y robustez

Arquitectura Cliente-Servidor:

-Ventajas: Organización clara y centralizada. Control de seguridad y acceso más sencillo. Es ideal para sistemas que requieren control central (bancos, bases de datos, etc.).

-Desventajas: Punto único de falla: Si el servidor falla, el sistema se detiene. Problemas de escalabilidad: A medida que aumentan los clientes, el servidor puede saturarse. Arquitectura Peer-to-Peer (P2P):

-Ventajas:

Mayor escalabilidad: Cada nodo que se une al sistema aporta capacidad. Robustez: No hay un único punto de falla. Distribución de carga: Los recursos se reparten entre todos los participantes.

-Desventajas:

Mayor complejidad de coordinación. Dificultades de control y seguridad. La consistencia de los datos puede ser más difícil de mantener.

Reasons:
  • Blacklisted phrase (1): cómo
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Michael Lire

79627841

Date: 2025-05-18 21:02:21
Score: 6.5 🚩
Natty: 4
Report link

you can check this link to make this thing : https://api.flutter.dev/flutter/cupertino/showCupertinoSheet.html

Reasons:
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): check this link
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tarek Mohamed

79627838

Date: 2025-05-18 21:00:20
Score: 3
Natty:
Report link

You will get an error only if addEmployee is invoked from the same class that has the method

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

79627833

Date: 2025-05-18 20:53:18
Score: 1.5
Natty:
Report link

Just use -w flag end of your package name

Like

pnpm add zod -w
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Developer Sabbir

79627831

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

Also, after solving this error, there was another error after running this command:

npm run action client/src/cordova/build android

Regarding the script action is not defined. This was solved by adding this line of script to package.json file:

"scripts": {
  "action": "cd src/cordova && cordova build android --verbose"
}

And then by npm run action, the application was built successfully.

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

79627829

Date: 2025-05-18 20:50:17
Score: 3
Natty:
Report link

www.allthenticate.com. It's free for personal use and can store you SSH key on your phone, which connects to your computer using Bluetooth.

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

79627828

Date: 2025-05-18 20:49:17
Score: 1.5
Natty:
Report link

Apparently, this was confusing, it's not a subshell specific issue, but it does not happen when called in the opposite order, i.e. first in subshell then directly.

Issue is solved by declaring local OPTIND in the function.

Closest related question here was Using getopts inside a Bash function.

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

79627827

Date: 2025-05-18 20:47:16
Score: 2
Natty:
Report link

What version of PyCharm are you using? PyCharm Pro offers integrated support for Jupyter notebooks, including the ability to convert a Jupyter notebook to a Python file.

Data Science and ML tools - PyCharm Documentation

P.S. If you happen to be a student, you can get a free Education license for all JetBrains' apps (including PyCharm Pro) using your .edu email address.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: clarkb86

79627826

Date: 2025-05-18 20:47:16
Score: 11
Natty: 7.5
Report link

How did you solved your problem?

Reasons:
  • RegEx Blacklisted phrase (3): did you solved your problem
  • RegEx Blacklisted phrase (1.5): solved your problem?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How did you solve
  • Low reputation (1):
Posted by: Dragoslav Milovanovic

79627823

Date: 2025-05-18 20:45:16
Score: 2.5
Natty:
Report link

Try placing your media directly inside the CapCut project directory under material/import/ and update all references in draft_content.json to use relative paths (CapCut often prefers local paths for self-contained portability).

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

79627818

Date: 2025-05-18 20:38:14
Score: 1
Natty:
Report link

You can try:

from IPython.core.display import display, HTML

display(HTML('<div style="border: 1px solid black; padding: 10px;"> help </div>'))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jordi Aceiton

79627815

Date: 2025-05-18 20:38:14
Score: 3
Natty:
Report link

Thanks. That fixed the error unpigz: abort: zlib version less than 1.2.3 for me

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juan Pablo Manson

79627802

Date: 2025-05-18 20:28:11
Score: 4
Natty:
Report link

I faced that error once and accidentally I imported default {Button} from "react-native" instead of my custom 'Button' component! 😂😂

Reasons:
  • Blacklisted phrase (1): 😂
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Moshtaq Ahmed

79627800

Date: 2025-05-18 20:27:11
Score: 2
Natty:
Report link

The problem was that my node version and prisma version were incompatible. When I tried to build my project with a newer version of node locally I would get dependency errors, and running build with --legacy-peer-deps would just freeze, but for some reason upgrading the node version on the docker build worked just fine.

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

79627789

Date: 2025-05-18 20:12:03
Score: 7 🚩
Natty:
Report link

I am having a problem with the solution offered above, "One usual pattern is to accumulate Dataset/DataArray objects in a list, and concatenate once at the end"

I get the following error:

TypeError: can only concatenate xarray Dataset and DataArray objects, got <class 'list'>

... as if concat would not allow a list input.

Can anyone help me on this?

I use Python 3.10.12

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • RegEx Blacklisted phrase (1): I get the following error
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Stefan Schmelzer

79627788

Date: 2025-05-18 20:11:02
Score: 0.5
Natty:
Report link

If you're looking for a more flexible way to handle multiple values for a single option in C, you might consider using Hopt, a lightweight and modular library designed for command-line option parsing. Hopt allows you to define options that can accept multiple arguments seamlessly. Here's an example demonstrating how to use Hopt to parse multiple values for a single option:

#include "hopt.h"

typedef struct s_opt
{
    char*   users[3];
    char*   name;
}   t_opt;

int main(int ac, char** av)
{
    t_opt opt = {0};

    //hopt_disable_sort(); // The AV will be automatically sort after parsing, so you can disable it
    hopt_help_option("h=-help=?", 0, 0);
    hopt_add_option("l=-list", 3, HOPT_TYPE_STR, &opt.users, "List of users");
    hopt_add_option("n=-name", 1, HOPT_TYPE_STR, &opt.name, NULL);
    int count = hopt(ac, av);
    ac -= (count + 1);
    av += (count + 1);

    // ... rest of your program
}

In this example, the -l or --list option can be followed by multiple user names, and Hopt will collect them into the opt.users array. Hopt supports both short and long options (endlessly), optional and required arguments, and provides a clean API for parsing command-line options.

Note: I developed this library to address some limitations I encountered with Argp and Getopt.

Reasons:
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bama

79627784

Date: 2025-05-18 20:03:01
Score: 5.5
Natty:
Report link

This problem can be solved via following tutorial: https://medium.com/sisaldigitalhubturkiye/what-is-api-gateway-and-how-to-use-it-a880cc6318ee

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • 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: adnan

79627771

Date: 2025-05-18 19:44:56
Score: 1.5
Natty:
Report link

To use two different authentication you need to add one more thing in your mongoose schema that is usertype like that

const mongoose = require("mongoose");
const passportLocalMongoose = require("passport-local-mongoose");

const sellerSchema = new mongoose.Schema({
  username: {
    type: String,
    required: true,
    minlength: [6, "Username is Too Short"],
    maxlength: [25, "Username is Too long"],
  },
  email: {
    type: String,
    required: true,
    minlength: [10, "Email is Too Short"],
    maxlength: [100, "Email is Too long"],
  },
  userType: { 
    type: String, 
    default: "seller"
  },
});

sellerSchema.plugin(passportLocalMongoose);

const seller_account = new mongoose.model("seller", sellerSchema);
module.exports = seller_account;

you can make more than one schema

after that just require the schema into app.js

const User = require("./model/user_account");
const Seller = require("./model/seller_account");

and then initialize the passport.js and authenticate both schema as per your usage here i assign two local strategies 'user' and 'seller'

app.use(passport.initialize());
app.use(passport.session());

passport.use("user", new LocalStrategy(User.authenticate()));
passport.use("seller", new LocalStrategy(Seller.authenticate()));

lets see how i use these two strategies in different routes

The first one gets a /login request and render a login page

router.get("/login", async (req, res) => {
  res.render("./pages/login.ejs");
});

The second one gets a /seller/login request and render a seller login page

router.get("/seller/login", async (req, res) => {
  res.render("./pages/seller_login.ejs");
});

after the i use two strategies like that here passport.authenticate("seller" or "user"........

router.post(
  "/login_seller",
  saveReturnTo,
  passport.authenticate("seller", {
    failureRedirect: "/seller/login",
    failureFlash: true,
  }),
  async (req, res) => {
    req.flash("success", "Login Account Successfully");
    let redirectUrl =  res.locals.returnTo || "/";
    res.redirect(redirectUrl);
  }
);

router.post(
  "/login_user",
  saveReturnTo,
  passport.authenticate("user", {
    failureRedirect: "/login",
    failureFlash: true,
  }),
  async (req, res) => {
    req.flash("success", "Login Account Successfully");
    let redirectUrl =  res.locals.returnTo || "/";
    res.redirect(redirectUrl);
  }
);

but there is a fault i.e when i login as a user or as a seller i stil get access to both user and seller pages LOL so dont worry for this bug i use a middleware which is placed in different file and export it anywhere that there i need to authenticate that the person is login as a user or as a seller the middileware is like that

module.exports.is_Seller = (req, res, next) => {
 if(req.user.userType === "seller"){
    return next();
 }  
  req.flash("error", "please login as seller");
  res.redirect("/seller/login");
}

you can see how i use middleware

router.get("/seller/home", isLoggedIn, is_Seller, async (req, res) => {
  let data = await product.find({});
  res.render("./pages/seller/home.ejs", { data });
});

here you can see first i check that the person is login or not

module.exports.isLoggedIn = (req, res, next) => {
  if (!req.isAuthenticated()) {
    req.session.returnTo = req.originalUrl;
    req.flash("error", "You need to be logged in to do that");
    return res.redirect("/login");
  }
  next();
}

then i check that the login person is seller or not by is_seller middleware also i use connect-flash npm package to flash a error or success message

if you like my answer please like my answer thankyou

Reasons:
  • Blacklisted phrase (1): thankyou
  • Blacklisted phrase (0.5): i need
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): ........
  • Low reputation (1):
Posted by: Mohammad Maaz

79627766

Date: 2025-05-18 19:39:55
Score: 3.5
Natty:
Report link

enter image description here

Make sure to select Junit4 in the Test Runner Option

Navigation -->

Run Configuration -> Select Junit for Test Runner Option

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

79627763

Date: 2025-05-18 19:36:54
Score: 4
Natty:
Report link

Did You try to mark the method as Transaccional (and retrieve Department inside it) ?

Reasons:
  • Whitelisted phrase (-2): Did You try
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did You
  • Low reputation (1):
Posted by: Horacio Gimenez

79627759

Date: 2025-05-18 19:33:53
Score: 1.5
Natty:
Report link

I tried to replicate the issue but it works well. You possibly made a typo in here calling onFetchError(err))


useFetch('put', `factor/${props.apiRoute}/${factor.id}`, {}, factor, getFactorListData, ({err}) => onFetchError(err));

I made an working sample, you can check
https://stackblitz.com/edit/vitejs-vite-pnqmeoud?embed=1&file=src%2Fcomponents%2FStuff.vue

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mücahit Çoban

79627745

Date: 2025-05-18 19:09:48
Score: 4.5
Natty: 4
Report link

You can try TNO's dependency graph extractor: https://github.com/TNO/Dependency_Graph_Extractor-Ada

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

79627744

Date: 2025-05-18 19:07:47
Score: 3
Natty:
Report link

If above solution doesn't work then there must be conflict with your database and file maganer files. (Happened with me when i restored files only not database)

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

79627742

Date: 2025-05-18 18:56:45
Score: 3
Natty:
Report link

That Works perfect for me. Just in case if some one need it.

.wishlist_products_counter:not(.wishlist-counter-with-products)::before {display:none !important;}

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

79627738

Date: 2025-05-18 18:54:44
Score: 8
Natty: 7.5
Report link

https://youtu.be/RVCKsM9oU7E?si=e8eAVeH1VRhna2vt Watch this tutorial. Hope this video is a solution of your problem.

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): youtu.be
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user30572277

79627735

Date: 2025-05-18 18:51:43
Score: 2
Natty:
Report link

Just got this issue myself - I was using Python 3.13.X, and apparently this is too new for pyscreeze library. I had to downgrade to 3.11.9, which at the time of writing is the last of the 3.11s that I could find easily on Python's official site. If anyone else comes across this, I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin

79627724

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

The head tag for the page with issues seem to be blank. There seems to be some formatting error in the new updated file. The tags and codes which are supposed to be in head tag are now within body tag when viewed in the inspector. Organizing those might help.

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

79627703

Date: 2025-05-18 18:05:33
Score: 1
Natty:
Report link

After a lot of investigation, I got in my device developer option Animator duration scale was set to off, but I was confident because other app's animation was working perfectly with that settings, after setting it to 1x, it is now working perfectly

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

79627697

Date: 2025-05-18 17:58:32
Score: 1.5
Natty:
Report link

After a lot of research, I found that Youtube do not give application permissions to manage others Youtube Channel. In fact, I think twice about that feature, and I am glad that is impossible, since that would be a security issue. Even if application was only a "limited editor", someone with application control, could upload any video to any youtube-channel that give accesss to it.

So this question is closed, but I will not delete it, because no one did make this question in SOF and therefor, can be useful to someone else.

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

79627695

Date: 2025-05-18 17:55:31
Score: 3
Natty:
Report link

Luckily, there is already the possibility of applying CSS rules based on the width of an element, check it out on the MDN website.

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: entoniperez

79627685

Date: 2025-05-18 17:41:28
Score: 3
Natty:
Report link

https://nypost.com/2025/05/18/us-news/ivf-clinic-bomber-identified-as-guy-edward-bartkus/

Guy bartkus in the news. Might want to delete this thread.

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

79627681

Date: 2025-05-18 17:36:27
Score: 1
Natty:
Report link

We encountered a similar issue in our project using Unity version 2022.3.10f1, and upgrading to Unity 2022.3.61f1 resolved it. I'm not sure if you're dealing with the exact same problem, but in our case, it appeared to be a bug in earlier 2022.3.x versions that was fixed in a later release.

Just a note: in the Play Asset Delivery system, install-time assets are included with the initial app download, while on-demand assets must be explicitly requested at runtime. Unity does not automatically download on-demand assets, even if install-time assets depend on them. If there's a dependency, you need to make sure those on-demand packs are requested and downloaded before use.

P.S. After upgrading Unity, we found we no longer needed the PAD pack at all.

Good luck!

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

79627676

Date: 2025-05-18 17:32:26
Score: 0.5
Natty:
Report link

So , if you are not able to recognise your user name or password , follow these steps:

  1. Stop your jenkins server ,if it is running , using command: sudo systemctl stop jenkins

  2. Goto /var/lib/jenkins

  3. Open config.xml file with root-edit access.

  4. Change the tag from "<useSecurity>true</useSecurity>" to "<useSecurity>false</useSecurity>"

  5. Save it.

  6. Then run command: Sudo systemctl start jenkins

  7. open the jenkins on your browser: http://localhost:8080/

  8. Goto: Dashboard > Manage Jenkins > Security

  9. Then select:

    "Jenkins own user database" under security realm.

    Select checkbox : Allow users to sign up

    "Loggedin user can do anything" under Authorization.

    And save it.

  10. You will be redirected to the login page > select Signup (Create new account)

  11. And login with the new account.

  12. Goto: Dashboard > Manage Jenkins > Users > Click on the gear icon of the account , whose password you forgot.

  13. Change the password and save the changes.

  14. Login with the Old account , also you can delete the new created account.

    Note: Dont forget to change the disble "Allow users to sign up" inside Security options.

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

79627674

Date: 2025-05-18 17:30:25
Score: 3.5
Natty:
Report link

What happened with ANTLR4? Most of the new structures of the parser and lexer do not have anything related to the work from "theantlrguy" about creating an LLVM IR: symbol tree, tree adaptor, ... aren't available in the ANTLR4 runtime.

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

79627673

Date: 2025-05-18 17:29:25
Score: 2.5
Natty:
Report link

cannot import name 'NaN' from 'numpy'

inspite of trying different solutions provided in the various, the above problem is not resolved while importing pandas_ta.

the pandas_ta is importing NAN from numpy in init.py but NaN cannot be imported from numpy.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): cannot
  • Low reputation (1):
Posted by: konduru srinivas

79627671

Date: 2025-05-18 17:25:24
Score: 3.5
Natty:
Report link

This is how I do it with ZipFS,a VirtualEnv and a Service Worker.

https://ry3yr.github.io/zipfs-sw-worker.html

(Source: https://ry3yr.github.io/zipfs-sw-worker.zip)

Could probably be improved, but works way better than using blobs and nested url rewrites.

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

79627659

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

you need to allow any number of keyword arguments, **kwargs in your custom function.
e.g.

def f2_score(y_true, y_pred,**kwargs):
  return fbeta_score(y_true, y_pred, beta=2)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jose_Peeterson

79627654

Date: 2025-05-18 17:03:19
Score: 5
Natty:
Report link

You can try to use A* pathfinding algorithm.

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

79627652

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

OK, so I never figured out what was going wrong here, but abandoning the git patch I was working on and starting a new one from scratch got it to work.

Just some random glitch, I guess.

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

79627646

Date: 2025-05-18 16:55:16
Score: 0.5
Natty:
Report link

This keeps happening to me when I drag and drop frameworks into the project, in Xcode 16. I followed the steps above and it made no difference in my case.

To fix it, I remove xcshareddata and xcuserdata from the project file. This may need to be done from the workspace file too, if you have one. This is the full list of steps I take:

1. Xcode > Product > Clean Build Folder
2. Close the project and Xcode
3. Delete DerivedData folder
<User>/Library/Developer/Xcode/DerivedData

Next are the important steps to fully solve the problem.
4. In the file system; Show Package Contents of the project file [ProjectName].xcodeproj
5. Delete folders:
xcshareddata
xcuserdata

Now, open the project, Clean Build Folder (if you didn’t before) and compile.
Note: this also worked for a project that was crashing when I opened it as noted in this post:
Xcode Crashing When Opening Project File

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

79627643

Date: 2025-05-18 16:54:16
Score: 1.5
Natty:
Report link

Adding this section to Loki configuration solved the issue:

ingester:
  query_store_max_look_back_period: -1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: K. V.

79627641

Date: 2025-05-18 16:51:15
Score: 1
Natty:
Report link

If you want to set a percentage condition, you can simply use the built-in DISC() function. For example, suppose you need an attribute that takes the value 1 with probability 0.4 and the value 2 with probability 0.6; you can write DISC(0.4, 1, 1, 2). Please note that the function operates on a cumulative basis.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Süleyman Topdemir

79627640

Date: 2025-05-18 16:50:14
Score: 0.5
Natty:
Report link

As it is mentioned in comment you are going through another array. a[4:] - it is sliced copy.
Just use ordinary loop:

for i:=4; i < len(a); i++ {
    var v=a[i]
    fmt.Printf("[idx=%d val=%d] ", i, v)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sergey Soltanov

79627623

Date: 2025-05-18 16:29:10
Score: 2
Natty:
Report link

So this issue was ultimately resolved, with my appreciation to @seamusless and @eileen in the town-square channel on the CiviCRM mattermost platform, as follows:

composer config 'extra.enable-patching' true 
composer update civicrm/civicrm-core
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @seamusless
  • User mentioned (0): @eileen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Hugh Esco

79627616

Date: 2025-05-18 16:17:07
Score: 2.5
Natty:
Report link

I have a youtube video and a github repo with the code. It demonstrates building and running your guest code (the assembly you wrote) in the QEMU host. It works with the Bash Shell, WSL2 or Linux. It also shows how to step into the startup code by debugging QEMU from the "reset" until the "cpu_exec" handing off execution to the guest code.

Video:https://youtu.be/EshBUwpxtIs

Code and instructions: https://github.com/stevemac321/riscv-asm

Reasons:
  • Blacklisted phrase (1): youtu.be
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stephen MacKenzie

79627605

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

Why post another answer?

While my previous answer works just fine, I've noticed that it uses an anti-pattern. The IXunitSerializable interface is part of the xunit.abstractions NuGet Package, and including a package reference to a unit testing package in the project under test introduces a test concern into the project under test, which doesn't feel like a good practice.

How important the presence of this anti-pattern is, is something for each organisation / development team / solo developer to decide for themselves - some may decide that it doesn't really matter for their use case.

The explanation of why some parameterised test methods can't be expanded to their test cases is still valid, and judging by the upvotes, a few people have already found that answer useful, so I'm leaving it as it is.

Summary of this answer

Here is an alternative approach that I've been using recently, which bypasses the need for Xunit to be able to serialize all the parameter values, by instead storing all the test cases in a Dictionary<string, TValue>, where the key is a unique name for the test case. The test case name is then used as the parameter to pass to the test method, and because this name is a string, it is always serializable, regardless of the values in the test case that the name refers to, and so the tests can always be expanded in the VS test explorer to show the individual test cases.

Implementation

First we need to define the "shape" of each test case - this encapsulates the values which we'd otherwise be passing as parameters to the test method. For the purpose of this answer, I'll continue to use the slightly contrived example from the question, of testing whether the FromArgb method of System.Drawing.Color sets the R, G and B properties correctly.

public record ColorTestCase(Color Color, int Red, int Green, int Blue);

This doesn't actually need to be a record, you could use a tuple instead if you prefer, or if you're constrained to using an earlier version of C# than 9.0 then a class or struct would work just as well. It also doesn't need to be public, I've made it public because I'll be using it in multiple classes, but if I were using it only in a single test class then I would nest it within that test class and make it private.

Next we need to define the data which makes up the test cases. I'll show two different ways of doing this:

Using [MemberData] to access data within the same test class

This is proably the simplest way of doing it, and is great if your test cases will only be used in a single test class. The property that we name in the test method's [MemberData] attribute returns the names of all the test cases. The actual test data is a Dictionary of string (the test case name) and whatever type you're using as the shape of the test cases. This can be private because no other classes need to use it, and it needs to be static so that the static property that we name in the [MemberData] attribute can reference it.

The first thing that the test method needs to do is to use the name of the test case to look up the actual test data object from the Dictionary, and where it would previously use the parameters which make up the test case, it now uses the properties of that test case object.

public class MyTestClass
{
    private static Dictionary<string, ColorTestCase> PrimaryColorTestData
        = new Dictionary<string, ColorTestCase>()
    {
        { "Red", new ColorTestCase(Color.FromArgb(255, 0, 0), 255, 0, 0) },
        { "Green", new ColorTestCase(Color.FromArgb(0, 255, 0), 0, 255, 0) },
        { "Blue", new ColorTestCase(Color.FromArgb(0, 0, 255), 0, 0, 255) }
    };

    public static TheoryData<string> PrimaryColorTestCaseNames
        => new TheoryData<string>(PrimaryColorTestData.Keys); // Xunit 2.6.5+

    [Theory]
    [MemberData(nameof(PrimaryColorTestCaseNames))]
    public void TestMethodUsingMemberDataAndPrivateDictionary(string testCaseName)
    {
        var testCase = PrimaryColorTestData[testCaseName];
        Assert.Equal(testCase.Red, testCase.Color.R);
        Assert.Equal(testCase.Green, testCase.Color.G);
        Assert.Equal(testCase.Blue, testCase.Color.B);
    }
}

The TheoryData<T> constructor which accepts a IEnumerable<T> parameter was added in Xunit 2.6.5, so if you're using an earlier version and aren't able to upgrade then you need to add the names of the test casees in a loop.


    public static TheoryData<string> PrimaryColorTestCaseNames
    {
        get
        {
            var data = new TheoryData<string>();
            foreach (var key in ColorTestDataProvider.BlackAndWhiteTestData.Keys)
            {
                data.Add(key);
            }

            return data;
        }
    }

Using [MemberData] to access data provided by a separate class

This approach is useful if your test data is getting large and you want to keep it separate from the test class, or if you want to use the same test data in multiple test classes.

First we need a class which provides our test data and the names of our test cases. This time the test data needs to be a public property rather than a private field so that the test class can access it.

public static class ColorTestDataProvider
{
    public static Dictionary<string, ColorTestCase> BlackAndWhiteTestData
            => new Dictionary<string, ColorTestCase>()
    {
        { "Black", new ColorTestCase(Color.FromArgb(0, 0, 0), 0, 0, 0) },
        { "White", new ColorTestCase(Color.FromArgb(255, 255, 255), 255, 255, 255) },
    };

    public static TheoryData<string> BlackAndWhiteTestCaseNames
            => new TheoryData<string>(BlackAndWhiteTestData.Keys);
}

Next, we need to add a test method to MyTestClass with a [MemberData] attribute which specifies the name and declaring type of the property which provides the names of the test cases. Again, the first thing the test method needs to do is to use the name of the test case to look up the test data object in the Dictionary.

    [Theory]
    [MemberData(
            nameof(ColorTestDataProvider.BlackAndWhiteTestCaseNames),
            MemberType = typeof(ColorTestDataProvider))]
    public void TestMethodUsingMemberDataWhichReferencesAnotherClass(string testCaseName)
    {
        var testCase = ColorTestDataProvider.BlackAndWhiteTestData[testCaseName];
        Assert.Equal(testCase.Red, testCase.Color.R);
        Assert.Equal(testCase.Green, testCase.Color.G);
        Assert.Equal(testCase.Blue, testCase.Color.B);
    }

Pros and cons

The need to think of a unique and descriptive name for each test case does add a slight cognotive load, however displaying these names in the test explorer is arguably more readable than displaying the parameter values, particularly if there are a lot of parameters or if they include large arrays.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Why post another answer
Posted by: sbridewell

79627603

Date: 2025-05-18 16:03:03
Score: 1.5
Natty:
Report link

Add the below to my vite.config.ts file resolved the issue

export default defineConfig({
  build: {
    commonjsOptions: {
      transformMixedEsModules: true
    },
  }
})
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dhiraj Kumar Mishra

79627602

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

Why is flowing off the end of a function without a return value not ill formed?

Because maybe you can guarantee that you won't let the program execute there.

The difference between undefined behavior and ill-formed C++ programs

Undefined behavior (commonly abbreviated UB) is a runtime concept. If a program does something which the language specified as “a program isn’t allowed to do that”, then the behavior at runtime is undefined: The program is permitted by the standard to do anything it wants.
However, if your program avoids the code paths which trigger undefined behavior, then you are safe.

Even if a program contains undefined behavior, the compiler is still obligated to produce a runnable program. And if the code path containing undefined behavior is not executed, then the program’s behavior is still constrained by the standard.

By comparison, an ill-formed program is a program that breaks one of the rules for how programs are written. For example, maybe you try to modify a variable declared as const, or maybe you called a function that returns void and tried to store the result into a variable.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why is
  • Low reputation (0.5):
Posted by: 許恩嘉

79627596

Date: 2025-05-18 15:57:01
Score: 2
Natty:
Report link

Was stuck on the same issue, check the headers your application is sending. Specifically, if Cross-Origin-Opener-Policy is set to same-origin, it needs to be updated to same-origin-allow-popups

Doc reference: https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid#cross_origin_opener_policy

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

79627575

Date: 2025-05-18 15:31:55
Score: 4
Natty:
Report link

Do this: Install composer require laravel/breeze --dev, and then @routes will not show as plain text anymore because Breeze sets up the route configuration."

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @routes
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abinaya

79627568

Date: 2025-05-18 15:22:52
Score: 0.5
Natty:
Report link

This is certainly due to missing username and email in the global configuration of git. Easy way to solve this is through IDE:

Git settings navigation in Visual Studio

Enter name and email for git global configuration through Visual Studio


These actions performed are equivalent to CLI approach of:

git config --global user.name "Your Username"
git config --global user.email "[email protected]"

P.S.: It'd be good to set the "Default Branch Name" to main as it defaults to master.

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

79627558

Date: 2025-05-18 15:08:50
Score: 5
Natty: 6
Report link

enter image description here

Ich habe die build.gradle.kts wie im Bild bearbeitet und konnte die gewünschten Ordner auch anlegen, jedoch sehe ich diese nur im Datei-Explorer und nicht in Android Studio. Wo ist mein Fehler?

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Markus Jannek

79627556

Date: 2025-05-18 15:04:48
Score: 2.5
Natty:
Report link

I've changed it to

<InputDate class="form-control" @bind-Value="@\_tempDate" 
      @onblur="PresentedDateChanged" />

This seems to be working. But still, why not bind-value:after?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
Posted by: Franky

79627554

Date: 2025-05-18 15:03:48
Score: 1.5
Natty:
Report link

I know this is a fairly old question, but if you are still wondering there is a file called /etc/cos-package-info.json which has the installed package information. It is discussed in the vulnerability scanning section of the COS documentation.

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

79627550

Date: 2025-05-18 14:59:47
Score: 4.5
Natty:
Report link

I solve this by uploading program file (.HEX) to soil sensor module found in this link

Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juma Rubea

79627541

Date: 2025-05-18 14:42:43
Score: 0.5
Natty:
Report link

keybindings.json

    {
        "key": "alt+down",
        "command": "editorScroll",
        "args": {"value": 5, "to": "down"},
        "when": "textInputFocus"
    },

argument 'value' of editorScroll command is scroll speed

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

79627534

Date: 2025-05-18 14:35:41
Score: 3
Natty:
Report link

You can also use web applications like https://mockmyapi.in for creating mocks. You can create multiple scenarios and use them in your development.

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

79627530

Date: 2025-05-18 14:30:40
Score: 1.5
Natty:
Report link

I think you're looking for the let-else construct?

let Ok(mut entries) = fs::read_dir(folder).await else {
    // log here and diverge
};
// continue here
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: cyqsimon

79627529

Date: 2025-05-18 14:29:40
Score: 1
Natty:
Report link

The second argument of Arrays.sort() expects a java Comparator which is a functional interface that expects two arguments (a,b) and expects to return a concrete comparator logic (here Integer.compare(a[0],b[0]).
Now, the integer compare method is already a library method which returns -1,0 and 1 whenever a is less than, equal to or greater than b respectively.
If we dig deeper, this integer is fed to the internal sorting algorithm which is used by the language (here java). In the algo's comparision logic (mergesort etc), it just uses this returned integer by Integer.compare() to decide whether or not to swap two elements.

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

79627524

Date: 2025-05-18 14:24:38
Score: 5
Natty:
Report link

Here is another solution, you can check this out https://medium.com/@bassouat8/how-to-build-a-reusable-burger-menu-button-in-angular-with-animation-and-accessibility-2b67a578ddd7

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: bassouat

79627514

Date: 2025-05-18 14:02:31
Score: 0.5
Natty:
Report link

A quick fix:

Change compileSdk, buildTools and ... in this file node_modules/react-native/gradle/libs.versions.toml

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

79627511

Date: 2025-05-18 14:00:31
Score: 0.5
Natty:
Report link

Unfortunately, there is no VSCode setting or JSON configuration to append custom property values to IntelliSense for CSS. As mentioned, you can create your own custom snippet. I prefer Cochin over Cambria, so I wanted to switch the order in the default snippet, but had to do the following instead in the css.json file (File > Preferences > Configure Snippets > css):

{
    // Place your snippets for css here. Each snippet is defined under a snippet name and has a prefix, body and 
    // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
    // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
    // same ids are connected.
    // Example:
    // "Print to console": {
    //  "prefix": "log",
    //  "body": [
    //      "console.log('$1');",
    //      "$2"
    //  ],
    //  "description": "Log output to console"
    // }
    "Cochin First Font-Family": {
        "prefix": "cff",
        "body": ["font-family: Cochin, Cambria, Georgia, Times, 'Times New Roman', serif;"],
        "description": "Default Cambria snippet with Cochin first"
    }
}

So now when I type "cff" > Tab, I get the font-family I line I want.

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

79627510

Date: 2025-05-18 13:59:30
Score: 0.5
Natty:
Report link

I was also surprised there is no way to prevent bringing it to front and loosing focus.

My workaround is to have "reusable pages" (1 if your program is simple, or X if you have a X as concurrency). You wait for a created page instance to be marked as available (with a mutex or so) to reuse it.

_Make sure to clear all listeners if you added some, or the storage if you don't want it to be shared. It's a bit more at risk... but for now that's the only viable solution when `headless: true` does not fit the use case._

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

79627502

Date: 2025-05-18 13:49:28
Score: 3.5
Natty:
Report link

usen json, it is better than mysql in many where

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

79627501

Date: 2025-05-18 13:48:28
Score: 3
Natty:
Report link

Based on https://projectlombok.org/features/Data, Data contains @ToString, @EqualsAndHashCode, @Getter, @Setter, @RequiredArgsConstructor

The use in spring is no different than elsewhere, you can also set up items that contain lombok at https://start.spring.io/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @ToString
  • User mentioned (0): @EqualsAndHashCode
  • User mentioned (0): @Getter
  • User mentioned (0): @Setter
  • User mentioned (0): @RequiredArgsConstructor
  • Low reputation (1):
Posted by: EikoocSun

79627474

Date: 2025-05-18 13:19:22
Score: 3
Natty:
Report link

In my case, for local testing, the problem was changing from https to http. So http://localhost:8080/...

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

79627472

Date: 2025-05-18 13:13:21
Score: 2.5
Natty:
Report link

After some research I found out that it is not possible to access the Docker daemon of the underlying instance in a managed CodeBuild environment. This would require a custom EC2 instance. As I don't want to pay the cost for that I decided to go with the Docker-in-Docker approach instead.

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

79627455

Date: 2025-05-18 12:45:13
Score: 1
Natty:
Report link

I was looking for a solution and had to come up with one myself.

I wanted to use something like c#'s nameof so my func is called as such.

function nameof(obj) {
  return Object.keys(obj)[0];
}

Can be used like

const myObj = {};

nameof({ myObj }); // will return 'myObj'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Orhan Ekici

79627451

Date: 2025-05-18 12:35:10
Score: 5.5
Natty: 4.5
Report link
  1. loadstring(game:HttpGet("https://raw.githubusercontent.com/newredz/BloxFruits/refs/heads/main/Source.luau"))(Settings)
Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: FFTLMN Foithong065

79627449

Date: 2025-05-18 12:29:09
Score: 2.5
Natty:
Report link

Since this question was asked, kotlinx-io has been created to address this gap in Kotlin Multiplatform.

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

79627439

Date: 2025-05-18 12:20:06
Score: 1.5
Natty:
Report link

using make_shared<T>() is really not possible to access private and protected part of the class, to access these parts of the class you will either:

1. either you can make a function in the singleton class that will let you access the instance of the class, or

2. make a class which manages the creation of the singleton class and make it a friend the class from there you could use the std::shared_ptr<T>(arg) for creating your new objects of the your class

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

79627436

Date: 2025-05-18 12:14:04
Score: 4
Natty:
Report link
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pierre NEVEU

79627426

Date: 2025-05-18 11:50:59
Score: 1
Natty:
Report link

I had the same error at a 'TextBlock' within a grid cell which defined its content in the body, not in 'Text'. As soon as the content was moved to 'Text' the exception vanished. But I needed multiple lines. So I placed the TextBlock inside a 'ContentControl' or 'Border' and both worked. I guess in my case it's a bug in Visual Studio. The version is 17.13.7.

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

79627424

Date: 2025-05-18 11:47:58
Score: 2.5
Natty:
Report link

If the pip activity is started by context.startActivity(intent, optionsBundle) and optionsBundle is created by ActivityOptions.makeLaunchIntoPip(params).toBundle(); we can detect close and maximized click event by the given solutions.

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

79627419

Date: 2025-05-18 11:38:55
Score: 3
Natty:
Report link

Problem fixed; My index.html file included a <script src=> tag to the JS file causing this issue...

Thanks to anyone who reviewed this question in despite of the lack of answers :)

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

79627415

Date: 2025-05-18 11:34:54
Score: 2
Natty:
Report link
trackOutlineColor: WidgetStateProperty.all(
                    AppColors.primaryColor,
                  ),
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: mahmood imtiaz

79627395

Date: 2025-05-18 11:10:48
Score: 2.5
Natty:
Report link

Even I'm new to Android App development, but i think using this line would solve ur issue

This uses up all the screen space from the all the sides,

EdgeToEdge.enable(MainActivity.this);

Add this in on the top of the activity

without enabled

edge to edge enabled

i have added the images for your reference

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ANIRUDH G V

79627391

Date: 2025-05-18 11:06:47
Score: 1
Natty:
Report link

You should configure service discovery by using:

Add following code in your blazor Program.cs file.

builder.AddServiceDefaults();

see https://aka.ms/dotnet/aspire/service-defaults

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

79627386

Date: 2025-05-18 11:01:46
Score: 0.5
Natty:
Report link

You have to ensure these rules.

  1. NAT Gateway are in the Public Subnet, and set to Public Connectivity Type

  2. Route Table on Private Subnet are set to Destination: 0.0.0.0/0 → Target: NAT Gateway

  3. Network ACL on both Private and Public Subnet are Set Allow for connection to 0.0.0.0/0 on both Inbound and Outbound Traffic

  4. Ensure Private Instance security group's are set Outbound to 0.0.0.0/0 on Outbound traffic or just set to specific Port and Protocol

I found that Point 3 is the solution to the similar problem that you have.

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

79627384

Date: 2025-05-18 10:56:40
Score: 7 🚩
Natty:
Report link

Did anyone fixed that in the meanwhile? I have the same Issue.

Testing with curl is running fine:
curl -i -N "http://localhost/?script=longtest.sh&path=test"

HTTP/1.1 200 OK
Server: nginx/1.26.3
Date: Sun, 18 May 2025 10:45:53 GMT
Content-Type: text/plain; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Content-Encoding: identity
Cache-Control: no-cache, no-store

STEP 1 - 10:45:54
(PAUSE)
STEP 2 - 10:45:56
(PAUSE)
STEP 3 - 10:45:58
(PAUSE)
....

I tried serval configs. This is my current one:

server {
        listen       80;
        server_name  _;

        location / {
        # Buffering global deaktivieren
            fastcgi_buffering          off;
            fastcgi_request_buffering  off;
            fastcgi_max_temp_file_size 0;
            
            # Force Flush aktivieren
            #fastcgi_force_flush        on;

            # Chunked Encoding erzwingen
            chunked_transfer_encoding  on;
            proxy_buffering            off;
            gzip                       off;

            # Keep-Alive
            fastcgi_keep_conn          on;
            fastcgi_socket_keepalive   on;

            # Timeouts
            fastcgi_read_timeout       86400;
            fastcgi_send_timeout       86400;
        
#            autoindex on;
#            alias /mnt/samba/;
            # CGI für die dynamische Verzeichnisauflistung verwenden
            root /scans;
            try_files $uri $uri/ =404;  # Wenn die Datei nicht existiert, gehe zu @cgi
            # Wenn die Anfrage auf ein Verzeichnis zeigt, führe das CGI-Skript aus
            # Wenn es ein Verzeichnis ist, rufe das CGI-Skript auf
            location ~ /$ { 
                # Füge die FastCGI-Parameter hinzu
                include fastcgi_params;
                fastcgi_param SCRIPT_FILENAME /scans/scans.sh;
                # Erlaube Übergabe der Anfrage als Query-String
                #fastcgi_param QUERY_STRING "path=$uri";  # Statt $request_uri
                fastcgi_param QUERY_STRING $query_string; 
                fastcgi_param NO_BUFFERING 1;
                fastcgi_request_buffering off; 
                fastcgi_pass unix:/var/run/fcgiwrap/fcgiwrap.socket;
            }                    
            # Deaktiviere das automatische Directory-Listing von Nginx
            autoindex off;     

        }
    }

But It´s again buffering. That´s strange because the direct curl on the wrapper is not buffering.

Reasons:
  • Blacklisted phrase (1): I have the same Issue
  • RegEx Blacklisted phrase (3): Did anyone fixed that
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same Issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did anyone fix
  • Low reputation (1):
Posted by: Mario TTP

79627373

Date: 2025-05-18 10:47:38
Score: 0.5
Natty:
Report link

you can call

Environment.FailFast("CRASH the process immediately and log the fatal issue")

this also Leaves a crash message in Event Log (Windows)

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

79627371

Date: 2025-05-18 10:46:37
Score: 1.5
Natty:
Report link

from reportlab.lib.pagesizes import A4

from reportlab.pdfgen import canvas

from reportlab.lib.units import cm

# Створення PDF

pdf_path = "/mnt/data/Strategiya_rozvytku_Ukrainy_2026_2030_FULL.pdf"

c = canvas.Canvas(pdf_path, pagesize=A4)

width, height = A4

# Функція для додавання заголовків і абзаців

def draw_text(title, body, y_start):

c.setFont("Helvetica-Bold", 14) 

c.drawString(2\*cm, y_start, title) 

c.setFont("Helvetica", 12) 

text = c.beginText(2\*cm, y_start - 1\*cm) 

for line in body.split('\\n'): 

    text.textLine(line) 

c.drawText(text) 

return text.getY() - 1\*cm 

y = height - 2*cm

sections = [

("Презентація командного проєкту", 

 "Керівник/Учасник – Сергій Герштанський"), 



("1. БЮДЖЕТНО-ПОДАТКОВА (ФІСКАЛЬНА) ПОЛІТИКА", 

 """Мета: Забезпечення стійкого зростання доходів державного бюджету при збереженні фіскальної дисципліни. 

Ключові напрями:

- Податкова реформа: спрощення адміністрування, боротьба з тіньовою економікою.

- Розширення бази оподаткування: залучення цифрової економіки.

- Пріоритет фінансування освіти, медицини, інфраструктури.

- Децентралізація бюджету – підсилення фінансової спроможності громад.

"""),

("2. ГРОШОВО-КРЕДИТНА (МОНЕТАРНА) ПОЛІТИКА", 

 """Мета: Забезпечення цінової стабільності, підтримка інвестиційного клімату. 

Ключові заходи:

- Збереження інфляції в межах 5% ± 1%.

- Зміцнення банківської системи: стимулювання кредитування малого бізнесу.

- Розвиток фінансових інструментів (державні облігації, страхові ринки).

- Стимулювання зелених інвестицій через пільгові ставки.

"""),

("3. СТРУКТУРНА ПОЛІТИКА (ГАЛУЗІ ТА РЕГІОНИ)", 

 """Мета: Переорієнтація економіки на інноваційні, екологічні та високотехнологічні галузі. 

Основні дії:

- Підтримка АПК, ІТ-сектору, машинобудування.

- Розвиток індустріальних парків у регіонах.

- Державні програми для слаборозвинених територій (схід та південь України).

- Стимулювання переробної промисловості та експортноорієнтованих підприємств.

"""),

("4. СОЦІАЛЬНА ПОЛІТИКА", 

 """Мета: Підвищення рівня життя громадян, зменшення соціальної нерівності. 

Ключові заходи:

- Пенсійна реформа: перехід до накопичувальної системи.

- Інвестиції в освіту та охорону здоров’я.

- Розширення програм соціального захисту вразливих груп.

- Підтримка внутрішньо переміщених осіб та ветеранів.

"""),

("ВИСНОВКИ", 

 """- Стратегія 2026–2030 спрямована на досягнення стійкого зростання та добробуту населення. 

- Гармонізація фіскальної, монетарної та структурної політики дозволить забезпечити макроекономічну стабільність.

- Ключовими чинниками успіху є політична воля, прозорість реформ та ефективне управління ресурсами.

- Необхідна постійна взаємодія центральної влади з громадами та приватним сектором.

"""),

("ХАРАКТЕРИСТИКА РОБОТИ", 

 """Робота над стратегією була поділена на чіткі напрямки з урахуванням командного підходу. Кожна команда провела аналіз поточного стану та розробила реалістичні й водночас амбітні пропозиції на період 2026–2030 років. 

Сергій Герштанський координував узгодження між командами, забезпечував інтеграцію ідей у цілісну стратегічну рамку та сприяв дотриманню дедлайнів і якості аналітики. Завдяки ефективній взаємодії вдалося створити комплексну Стратегію, яка враховує як економічні, так і соціальні потреби України на наступні 5 років.

""")

]

for title, body in sections:

if y \< 5\*cm: 

    c.showPage() 



 y = height - 2\*cm 

y = draw_text(title, body, y) 

c.save()

pdf_path

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Serhii Hershtanskyi

79627368

Date: 2025-05-18 10:44:37
Score: 0.5
Natty:
Report link

https://doc.rust-lang.org/std/primitive.u128.html#method.div_ceil

div_ceil Calculates the quotient of self and rhs, rounding the result towards positive infinity.

assert_eq!(7_u128.div_ceil(4), 2);
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Russo